Don't try to double-wrap objects
This commit is contained in:
parent
cab868482c
commit
5ca5b06ebc
1 changed files with 4 additions and 1 deletions
|
@ -322,7 +322,10 @@ Zotero.Translate.DOMWrapper = new function() {
|
|||
* @param {XPCCrossOriginWrapper} obj
|
||||
* @return {Object} An obj that is no longer Xrayed
|
||||
*/
|
||||
this.wrap = wrapPrivileged;
|
||||
this.wrap = function(obj, overrides) {
|
||||
if(isWrapper(obj)) return obj;
|
||||
return wrapPrivileged(obj, overrides);
|
||||
};
|
||||
|
||||
/**
|
||||
* Unwraps an object
|
||||
|
|
Loading…
Reference in a new issue