Prefer use of Services.appinfo

This commit is contained in:
Sylvester Keil 2018-07-05 17:35:16 +02:00 committed by Adomas Venčkauskas
parent b2a1977d5a
commit 06cb9aff98
2 changed files with 3 additions and 7 deletions

View file

@ -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;
}