mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-14 19:15:45 +01:00
Fix about:pentadactyl by registering the component manually. Et cetera.
This commit is contained in:
@@ -478,7 +478,7 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
|
||||
|
||||
stackLines: function (stack) {
|
||||
let lines = [];
|
||||
let match, re = /([^]*?)(@.*?)(?:\n|$)/g;
|
||||
let match, re = /([^]*?)(@[^@\n]*)(?:\n|$)/g;
|
||||
while (match = re.exec(stack))
|
||||
lines.push(match[1].replace(/\n/g, "\\n").substr(0, 80) + match[2]);
|
||||
return lines;
|
||||
@@ -930,6 +930,8 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
|
||||
util.trapErrors(module.cleanup, module);
|
||||
}
|
||||
|
||||
JSMLoader.cleanup();
|
||||
|
||||
services.observer.addObserver(this, "dactyl-rehash", true);
|
||||
},
|
||||
"dactyl-rehash": function () {
|
||||
|
||||
Reference in New Issue
Block a user