mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-07 16:54:12 +01:00
Fix live update issues.
This commit is contained in:
@@ -12,6 +12,11 @@ var BOOTSTRAP_CONTRACT = "@dactyl.googlecode.com/base/bootstrap";
|
||||
var JSMLoader = BOOTSTRAP_CONTRACT in Components.classes &&
|
||||
Components.classes[BOOTSTRAP_CONTRACT].getService().wrappedJSObject.loader;
|
||||
|
||||
if (!JSMLoader && "@mozilla.org/fuel/application;1" in Components.classes)
|
||||
JSMLoader = Components.classes["@mozilla.org/fuel/application;1"]
|
||||
.getService(Components.interfaces.extIApplication)
|
||||
.storage.get("dactyl.JSMLoader", null);
|
||||
|
||||
if (JSMLoader && JSMLoader.bump === 4)
|
||||
JSMLoader.global = this;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user