1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-31 10:32:39 +01:00

Try not to break things on :rehash for users running from the repo.

This commit is contained in:
Kris Maglione
2011-01-05 19:37:54 -05:00
parent 3a3f011fc9
commit b1e8834f3b
5 changed files with 31 additions and 22 deletions

4
common/bootstrap.js vendored
View File

@@ -61,6 +61,10 @@ function startup(data, reason) {
addon = data;
AddonManager.getAddonByID(addon.id, function (a) { addon = a; });
// Temporary hack.
if (basePath.isDirectory() && JSMLoader.bump == null)
JSMLoader.bump = 1;
if (basePath.isDirectory())
getURI = function getURI(path) {
let file = basePath.clone().QueryInterface(Ci.nsILocalFile);