mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-04 20:46:39 +02:00
Trying to get wrappedJSObject of an wrappedJSObject is wrong...
Fixes #133 and #134.
This commit is contained in:
parent
42ee6e483e
commit
eb62521adc
4 changed files with 17 additions and 8 deletions
|
@ -9,6 +9,11 @@ function require(module){
|
|||
var scopeName = module.substr(2).replace(/\..+/, "");
|
||||
return window.scope[scopeName];
|
||||
}
|
||||
else if (module === "sdk/getWrapped"){
|
||||
return function getWrapped(obj){
|
||||
return obj.wrappedJSObject || obj;
|
||||
};
|
||||
}
|
||||
else if (module === "sdk/simple-prefs"){
|
||||
return {
|
||||
prefs: settings,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue