mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-04 04:26:35 +02:00
Changed pre-intercept to block
... instead of forcing the loading of the settings with a synchonous XHR.
This commit is contained in:
parent
871199cbc3
commit
3e214ed967
3 changed files with 27 additions and 5 deletions
|
@ -96,11 +96,25 @@
|
|||
enumerable: true,
|
||||
configureable: true,
|
||||
get: exportFunction(function(){
|
||||
undoPreIntercept();
|
||||
settings.forceLoad();
|
||||
doRealIntercept();
|
||||
var descriptor = Object.getOwnPropertyDescriptor(constructor.prototype, name);
|
||||
return descriptor.value || descriptor.get();
|
||||
var url = getURL(window);
|
||||
if (!url){
|
||||
return undef;
|
||||
}
|
||||
var error = new Error();
|
||||
apis.notify({
|
||||
url,
|
||||
errorStack: error.stack,
|
||||
messageId: "preBlock",
|
||||
timestamp: new Date(),
|
||||
functionName: name,
|
||||
dataURL: false
|
||||
});
|
||||
return;
|
||||
// undoPreIntercept();
|
||||
// settings.forceLoad();
|
||||
// doRealIntercept();
|
||||
// var descriptor = Object.getOwnPropertyDescriptor(constructor.prototype, name);
|
||||
// return descriptor.value || descriptor.get();
|
||||
}, window),
|
||||
set: exportFunction(function(){}, window)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue