diff --git a/chrome/content/zotero/xpcom/translation/translate_firefox.js b/chrome/content/zotero/xpcom/translation/translate_firefox.js index a42da9d267..a3581dede4 100644 --- a/chrome/content/zotero/xpcom/translation/translate_firefox.js +++ b/chrome/content/zotero/xpcom/translation/translate_firefox.js @@ -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