1
0
Fork 0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-07-04 20:46:39 +02:00

Fixed PDF bug + added full RegExp support.

This commit is contained in:
kkapsner 2014-08-10 18:03:58 +02:00
parent 6d0fb5e1f1
commit 124d0a73a5
4 changed files with 24 additions and 7 deletions

View file

@ -4,9 +4,9 @@ var askFunctionName = Math.random().toString(16);
function checkPDF(blocking){
if (unsafeWindow.document.contentType.match(/\/pdf$/i)){
self.port.emit("isPDF", blocking);
return false;
return true;
}
return true;
return false;
}
function block(force){