From 453496432ecdcc02151f58d2fc483ba57416f1c3 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Wed, 9 May 2012 10:47:29 -0400 Subject: [PATCH] Fix running from an XPI. Closes issue #848. --- common/bootstrap.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/bootstrap.js b/common/bootstrap.js index f756a28f..d65059d6 100755 --- a/common/bootstrap.js +++ b/common/bootstrap.js @@ -233,6 +233,8 @@ function init() { } } + JSMLoader.config = JSON.parse(httpGet("resource://dactyl-local/config.json").responseText); + bootstrap = module(BOOTSTRAP); bootstrap.require = JSMLoader.load("base").require; @@ -346,7 +348,6 @@ function startup(data, reason) { Services.io.newURI("jar:" + Services.io.newFileURI(basePath).spec.replace(/!/g, "%21") + "!" + "/" + path, null, null); - JSMLoader.config = JSON.parse(httpGet(getURI("config.json")).responseText); try { init(); }