Open update wizard in Standalone
This commit is contained in:
parent
8994961c85
commit
8c3cf11df1
|
@ -653,7 +653,10 @@ Components.utils.import("resource://gre/modules/Services.jsm");
|
||||||
// "Check for updates" button
|
// "Check for updates" button
|
||||||
if(index === 0) {
|
if(index === 0) {
|
||||||
if(Zotero.isStandalone) {
|
if(Zotero.isStandalone) {
|
||||||
ZoteroStandalone.checkForUpdates();
|
Components.classes["@mozilla.org/embedcomp/window-watcher;1"]
|
||||||
|
.getService(Components.interfaces.nsIWindowWatcher)
|
||||||
|
.openWindow(null, 'chrome://mozapps/content/update/updates.xul',
|
||||||
|
'updateChecker', 'chrome,centerscreen', null);
|
||||||
} else {
|
} else {
|
||||||
// In Firefox, show the add-on manager
|
// In Firefox, show the add-on manager
|
||||||
Components.utils.import("resource://gre/modules/AddonManager.jsm");
|
Components.utils.import("resource://gre/modules/AddonManager.jsm");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user