~callum/beavers-dam

eb3e03bad713d40cd53247264feea86ea31635c9 — Callum Brown 1 year, 2 months ago d9fc6c7
rename dam() -> buildDam() in content.js

Avoids name collision with the div element dam
1 files changed, 2 insertions(+), 2 deletions(-)

M content/content.js
M content/content.js => content/content.js +2 -2
@@ 33,7 33,7 @@ const undam = (hostname) => {
};


const dam = () => {
const buildDam = () => {
	let dam = document.createElement("div");
	dam.id = "beavers-dam";
	document.body.append(dam);


@@ 77,6 77,6 @@ chrome.storage.sync.get(
	{ dammed: [] },
).then((items) => {
	if (items.dammed.includes(location.hostname)) {
		dam();
		buildDam();
	}
});