[nscl] Updated NoScript Common Library inclusions.

This commit is contained in:
hackademix 2021-02-12 23:57:22 +01:00
parent ee00dd3dd6
commit cb11684595
2 changed files with 65 additions and 2 deletions

63
src/nscl/common/tld.js Normal file

File diff suppressed because one or more lines are too long

View File

@ -8,8 +8,8 @@ function patchWindow(patchingCallback, env = {}) {
let original = targetObject[defineAs];
console.log(`Setting ${targetObject}.${defineAs}`, func);
targetObject[defineAs] = new Proxy(original, {
apply(target, thisArg, args) {
return func.apply(thisArg, args);
apply(target, thisArg, args) {
return func.apply(thisArg, args);
}
});
};