From d94b4683b3100be8e2b2368101cc4a460c0e922f Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Thu, 16 Feb 2012 14:42:21 -0500 Subject: [PATCH] Force ZSA into online mode on startup --- chrome/content/zotero/xpcom/standalone.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chrome/content/zotero/xpcom/standalone.js b/chrome/content/zotero/xpcom/standalone.js index c47bee904..c6f654a9e 100644 --- a/chrome/content/zotero/xpcom/standalone.js +++ b/chrome/content/zotero/xpcom/standalone.js @@ -22,6 +22,7 @@ ***** END LICENSE BLOCK ***** */ +Components.utils.import("resource://gre/modules/Services.jsm"); Zotero.Standalone = new function() { /** @@ -70,6 +71,9 @@ Zotero.Standalone = new function() { }; this.init = function() { + // Set not offline + Services.io.offline = false; + // Add an observer to handle AMO requests Components.classes["@mozilla.org/observer-service;1"]. getService(Components.interfaces.nsIObserverService).