mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-04 12:36:37 +02:00
Typos and linting
This commit is contained in:
parent
f873bd84e5
commit
4a043b2c78
16 changed files with 101 additions and 75 deletions
|
@ -50,7 +50,7 @@
|
|||
setHeader(headers, {
|
||||
name: "Content-Security-Policy",
|
||||
value: `object-src ${cspMatch}; frame-src ${cspMatch}`
|
||||
// + "; report-to https://canvasblocker.invalid/; report-uri https://canvasblocker.invalid/"
|
||||
// + "; report-to https://canvasblocker.invalid/; report-uri https://canvasblocker.invalid/"
|
||||
});
|
||||
}
|
||||
return {
|
||||
|
|
|
@ -108,7 +108,7 @@
|
|||
"contentWindow",
|
||||
{
|
||||
enumerable: true,
|
||||
configureable: true,
|
||||
configurable: true,
|
||||
get: exportFunction(function(){
|
||||
var window = oldContentWindowGetter.call(this);
|
||||
if (window){
|
||||
|
@ -124,7 +124,7 @@
|
|||
"contentDocument",
|
||||
{
|
||||
enumerable: true,
|
||||
configureable: true,
|
||||
configurable: true,
|
||||
get: exportFunction(function(){
|
||||
var document = oldContentDocumentGetter.call(this);
|
||||
if (document){
|
||||
|
|
|
@ -66,7 +66,7 @@
|
|||
scope.intercept({subject: window}, apis);
|
||||
}
|
||||
else {
|
||||
logging.message("settings not loaded -> need to pre intercep");
|
||||
logging.message("settings not loaded -> need to pre intercept");
|
||||
let forceLoad = true;
|
||||
let preIntercepted = false;
|
||||
let intercepted = false;
|
||||
|
@ -97,7 +97,7 @@
|
|||
name,
|
||||
{
|
||||
enumerable: true,
|
||||
configureable: true,
|
||||
configurable: true,
|
||||
get: exportFunction(function(){
|
||||
if (forceLoad){
|
||||
logging.warning("force load the settings. Calling stack:", (new Error()).stack);
|
||||
|
|
|
@ -86,7 +86,7 @@
|
|||
"fillText", "strokeText",
|
||||
{name: "webGL", level: 2},
|
||||
"readPixels",
|
||||
{name: "Audio-API", leve: 1},
|
||||
{name: "Audio-API", level: 1},
|
||||
"getFloatFrequencyData", "getByteFrequencyData", "getFloatTimeDomainData", "getByteTimeDomainData",
|
||||
"getChannelData", "copyFromChannel",
|
||||
"getFrequencyResponse"
|
||||
|
|
|
@ -376,7 +376,7 @@
|
|||
return foundDefinition.set(...args);
|
||||
}
|
||||
else {
|
||||
logging.error("Try to set unkown setting:", name);
|
||||
logging.error("Try to set unknown setting:", name);
|
||||
}
|
||||
};
|
||||
scope.get = function(name, ...args){
|
||||
|
@ -385,7 +385,7 @@
|
|||
return foundDefinition.get(...args);
|
||||
}
|
||||
else {
|
||||
logging.error("Try to get unkown setting:", name);
|
||||
logging.error("Try to get unknown setting:", name);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue