mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-13 05:35:45 +01:00
Don't fight stuff for focus. Maybe closes #982.
This commit is contained in:
@@ -53,10 +53,14 @@ var ConfigBase = Class("ConfigBase", {
|
||||
|
||||
this.loadConfig();
|
||||
|
||||
JSMLoader.registerFactory(JSMLoader.Factory(AboutHandler));
|
||||
JSMLoader.registerFactory(JSMLoader.Factory(
|
||||
Protocol("dactyl", "{9c8f2530-51c8-4d41-b356-319e0b155c44}",
|
||||
"resource://dactyl-content/")));
|
||||
util.trapErrors(() => {
|
||||
JSMLoader.registerFactory(JSMLoader.Factory(AboutHandler));
|
||||
});
|
||||
util.withProperErrors(() => {
|
||||
JSMLoader.registerFactory(JSMLoader.Factory(
|
||||
Protocol("dactyl", "{9c8f2530-51c8-4d41-b356-319e0b155c44}",
|
||||
"resource://dactyl-content/")));
|
||||
});
|
||||
|
||||
this.protocolLoaded = true;
|
||||
this.timeout(function () {
|
||||
|
||||
@@ -1174,8 +1174,6 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
|
||||
util.trapErrors(module.cleanup, module, reason);
|
||||
}
|
||||
|
||||
JSMLoader.cleanup();
|
||||
|
||||
if (!this.rehashing)
|
||||
services.observer.addObserver(this, "dactyl-rehash", true);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user