commit 8c3cf11df1bfee0c6b8c9a5347888a7296e3fbc1
parent 8994961c859601bd9893c99a88037df0c30c24db
Author: aurimasv <aurimas.dev@gmail.com>
Date: Thu, 7 Nov 2013 20:55:07 -0600
Open update wizard in Standalone
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js
@@ -653,7 +653,10 @@ Components.utils.import("resource://gre/modules/Services.jsm");
// "Check for updates" button
if(index === 0) {
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 {
// In Firefox, show the add-on manager
Components.utils.import("resource://gre/modules/AddonManager.jsm");