1
0
Fork 0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-07-04 12:36:37 +02:00

First notification steps - NOT FUNCTIONAL!

This commit is contained in:
kkapsner 2015-04-14 01:26:04 +02:00
parent 4bcdfb9fb7
commit 0a88d47609
3 changed files with 57 additions and 3 deletions

View file

@ -10,6 +10,7 @@
};
var blockMode = {
getContext: {
name: "getContext",
status: "block",
askText: {
visible: "askForVisiblePermission",
@ -23,6 +24,7 @@
}
},
readAPI: {
name: "readAPI",
status: "allow",
askText: {
visible: "askForVisibleReadoutPermission",
@ -196,6 +198,7 @@
appearance.reset();
}
}
self.port.emit("accessed " + changedFunction.mode.name, status);
switch (status){
case "allow":
return original;
@ -242,7 +245,7 @@
// Communication with main.js
function checkAbout(){
return document.location.protocol === "about:");
return document.location.protocol === "about:";
}
function checkPDF(blocking){