[nscl] Updated NoScript Common Library inclusions.
This commit is contained in:
parent
ee00dd3dd6
commit
cb11684595
File diff suppressed because one or more lines are too long
|
@ -8,8 +8,8 @@ function patchWindow(patchingCallback, env = {}) {
|
||||||
let original = targetObject[defineAs];
|
let original = targetObject[defineAs];
|
||||||
console.log(`Setting ${targetObject}.${defineAs}`, func);
|
console.log(`Setting ${targetObject}.${defineAs}`, func);
|
||||||
targetObject[defineAs] = new Proxy(original, {
|
targetObject[defineAs] = new Proxy(original, {
|
||||||
apply(target, thisArg, args) {
|
apply(target, thisArg, args) {
|
||||||
return func.apply(thisArg, args);
|
return func.apply(thisArg, args);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue