www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit b3f8330498dd55b7d0f0e2f8db5d43adab28552e
parent 4f3394dea6bbbba8236dc5668a667b619df1373b
Author: Simon Kornblith <simon@simonster.com>
Date:   Wed, 21 Mar 2012 19:15:14 -0400

Expose Zotero.isBookmarklet, Zotero.isConnector and Zotero.isServer to translators

Diffstat:
Mchrome/content/zotero/xpcom/translation/translate.js | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/chrome/content/zotero/xpcom/translation/translate.js b/chrome/content/zotero/xpcom/translation/translate.js @@ -1287,6 +1287,10 @@ Zotero.Translate.Base.prototype = { this._sandboxManager.importObject({"Utilities":new Zotero.Utilities.Translate(this)}); this._sandboxManager.sandbox.Zotero.Utilities.HTTP = this._sandboxManager.sandbox.Zotero.Utilities; + this._sandboxManager.sandbox.Zotero.isBookmarklet = Zotero.isBookmarklet || false; + this._sandboxManager.sandbox.Zotero.isConnector = Zotero.isConnector || false; + this._sandboxManager.sandbox.Zotero.isServer = Zotero.isServer || false; + // create shortcuts this._sandboxManager.sandbox.Z = this._sandboxManager.sandbox.Zotero; this._sandboxManager.sandbox.ZU = this._sandboxManager.sandbox.Zotero.Utilities;