1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-01-03 10:31:54 +01:00

Removed bug introduced with "about:" sites

This commit is contained in:
kkapsner 2015-04-14 01:28:49 +02:00
parent 4bcdfb9fb7
commit ba524a896e
3 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@ -242,7 +242,7 @@
// Communication with main.js // Communication with main.js
function checkAbout(){ function checkAbout(){
return document.location.protocol === "about:"); return document.location.protocol === "about:";
} }
function checkPDF(blocking){ function checkPDF(blocking){

View File

@ -87,7 +87,7 @@
}); });
function checkURL(url){ function checkURL(url){
var url = new URL(url); url = new URL(url);
var mode = "block"; var mode = "block";
switch (prefs.blockMode){ switch (prefs.blockMode){
case "blockEverything": case "blockEverything":