Prefer use of Services.appinfo
This commit is contained in:
parent
b2a1977d5a
commit
06cb9aff98
2 changed files with 3 additions and 7 deletions
|
@ -456,9 +456,7 @@ var _isStandalone = null;
|
|||
*/
|
||||
function isStandalone() {
|
||||
if(_isStandalone === null) {
|
||||
var appInfo = Components.classes["@mozilla.org/xre/app-info;1"].
|
||||
getService(Components.interfaces.nsIXULAppInfo);
|
||||
_isStandalone = appInfo.ID === 'zotero@chnm.gmu.edu';
|
||||
_isStandalone = Services.appinfo.ID === 'zotero@chnm.gmu.edu';
|
||||
}
|
||||
return _isStandalone;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue