1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 02:27:58 +01:00

More bootstrap work. Now loadable without restart.

--HG--
branch : bootstrapped
rename : common/content/modules.js => common/modules/overlay.jsm
This commit is contained in:
Kris Maglione
2010-12-24 11:39:03 -05:00
parent baecb996c3
commit 794d711802
11 changed files with 328 additions and 337 deletions

6
common/bootstrap.js vendored
View File

@@ -143,15 +143,17 @@ function init() {
});
if (manifestURI instanceof Ci.nsIFileURL)
manager.autoRegister(file.QueryInterface(Ci.nsIFileURL).file);
manager.autoRegister(manifestURI.QueryInterface(Ci.nsIFileURL).file);
else {
var file = basePath.parent;
file.append(addon.id + ".manifest");
writeFile(file, result.map(function (line) line.join(" ")).join("\n"));
manager.autoRegister(file);
//file.remove(false);
file.remove(false);
}
require(global, "overlay");
}
function reasonToString(reason) {