Add Zotero.isClient

To replace Zotero.isStandalone
This commit is contained in:
Dan Stillman 2017-01-17 02:58:22 -05:00
parent 786f5efa30
commit 1cf2585b41

View file

@ -195,6 +195,7 @@ Services.scriptloader.loadSubScript("resource://zotero/polyfill.js");
this.platformVersion = appInfo.platformVersion; this.platformVersion = appInfo.platformVersion;
this.platformMajorVersion = parseInt(appInfo.platformVersion.match(/^[0-9]+/)[0]); this.platformMajorVersion = parseInt(appInfo.platformVersion.match(/^[0-9]+/)[0]);
this.isFx = true; this.isFx = true;
this.isClient = true;
this.isStandalone = Services.appinfo.ID == ZOTERO_CONFIG['GUID']; this.isStandalone = Services.appinfo.ID == ZOTERO_CONFIG['GUID'];
if (Zotero.isStandalone) { if (Zotero.isStandalone) {