From ba524a896e6ef42538ed817d210dc333a174c754 Mon Sep 17 00:00:00 2001 From: kkapsner Date: Tue, 14 Apr 2015 01:28:49 +0200 Subject: [PATCH] Removed bug introduced with "about:" sites --- canvasblocker.xpi | Bin 25372 -> 25370 bytes data/inject.js | 2 +- lib/main.js | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/canvasblocker.xpi b/canvasblocker.xpi index f9759d4a6739135c1b7c02a596f7b243b95ffbe4..df302b66583f1e9481ad5b8cb74d43a0cc85f615 100644 GIT binary patch delta 2560 zcmY+GcQhLe7seALwL+CDqE;I!M(o#?YHKtvHD9#08Z}GQCaBS(Ry5S6R8bT`)TZ{X zS;UAML50sAt*>v-dB1W0xzD-hJm=hV&$-X}Wp)A6yMPcq6g3SS005u`I55OlLSlKT zfA#7NUMSUXQO_?e#A3@3uklHh=qyDK0EF-Z0D{*ab zt#Y0}u{KIF%8APo)qeDdqh>5wUF@YMMf1S>&^kp(j;Acc^rfAyc$m;}H(GYc=MVq# zKcg&3PJ{ zxtjQA9-oykzr5bAHU`Gz2CRvjQ59i#CKq zjD8)fWki^}4+H@0U`q_2P-SvfUp49jVtnJA&336fN6U=YnDQeABH?at4!PEW26czY zHabr%hgzYX7sU*n%UWywG*7m<^=vy=&mX*@Fz}yf!}hZH3}f65JDm+vUasIT^T(Qd zCV3L2EsRQ&)o#-fjgg}`ff_vD&d)*P;g9gQk|2%56Ffp+H4u)ZQH``Z0!6=)d8D>|B$uGHwpdK#e5 z5wem{MvggvJ4Rt>l@sQB)C=wek98rT#g!Ei`pgi{z@@vd9*)O4>n%hrK2K9eneot) z5?c4HUu`|VEn^UP8$S{i?lg{J0#z1KhVo3HH1P>+RHf9b0=n%X_8op9*KdmVxD{OU z`Vs!xo`1Ch37jo}X^Z-GsBD%2&qj&a6tNE>AX`o72jt_R7Ak17T?Eha{Q7@(zM9Jq1mirbU$I!XQwkE6sgKw-PnGx8s7RuTMH8fb1_xTb(1S% zW?a`+-PZ5QwNcvb4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ioNeAyh27E%2L{(4@fH$SzY9xW+25DG+IZDxR9;zOy9KyjKlb9xfh#q3 zIG9AVRw7Z-Cga=4Ksr?A(V^RTFjR`0G4@H$0e0N(=J}+ zc7Y?G%hJ=#Xo^O&1~`ldMGKh}N(o;v)8X547wP+8WTFpn6xv@aDP3j5B4#F`}!>esLR!0doOlquRs|TCQ z2=)(3 z)8D=BUkLU0T~(%ecc&P%xHip(r5H2mg>wbV)I5K5OANgy?vgv*URirqs}?VCZa4ps zep-ugI?68py4tV)rkUR=7%U=@ieE(*&fr?lJ>$$|W3RhEF!-ky^>qWYol*i{a=UX! zFTQDy*(nO)iACJH7J3Fa;j%(AfZ?Ej;}uaB=kqsJ5lJ}ZpL8{XYXignhpvdZE*=b6 zqLnLB_P>Y!A1Qty+dqRGL;Rt)Vt7u>bCpN_%ZYdxK_DLv(9h-nQBsNDTqU8xxW7C9 E09i%9mjD0& 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":