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:
parent
6d0fb5e1f1
commit
124d0a73a5
4 changed files with 24 additions and 7 deletions
|
@ -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){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue