diff --git a/canvasblocker.xpi b/canvasblocker.xpi index f9759d4..df302b6 100644 Binary files a/canvasblocker.xpi and b/canvasblocker.xpi differ diff --git a/data/inject.js b/data/inject.js index d5867e5..96614c2 100644 --- a/data/inject.js +++ b/data/inject.js @@ -242,7 +242,7 @@ // Communication with main.js function checkAbout(){ - return document.location.protocol === "about:"); + return document.location.protocol === "about:"; } function checkPDF(blocking){ diff --git a/lib/main.js b/lib/main.js index ee39930..96af2bf 100644 --- a/lib/main.js +++ b/lib/main.js @@ -87,7 +87,7 @@ }); function checkURL(url){ - var url = new URL(url); + url = new URL(url); var mode = "block"; switch (prefs.blockMode){ case "blockEverything":