www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit d94b4683b3100be8e2b2368101cc4a460c0e922f
parent 1c83646212b482a2d37fbcba82d0455b6f07cab7
Author: Simon Kornblith <simon@simonster.com>
Date:   Thu, 16 Feb 2012 14:42:21 -0500

Force ZSA into online mode on startup

Diffstat:
Mchrome/content/zotero/xpcom/standalone.js | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git 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).