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

Fix config.addon race and add guards against future breakage.

This commit is contained in:
Kris Maglione
2011-01-30 14:45:33 -05:00
parent 71ae0ca0cd
commit bff31e153d
3 changed files with 29 additions and 19 deletions

2
common/bootstrap.js vendored
View File

@@ -79,7 +79,9 @@ function startup(data, reason) {
addonData = data;
addon = data;
dump("dactyl: bootstrap: pre-getAddonByID\n");
AddonManager.getAddonByID(addon.id, function (a) {
dump("dactyl: bootstrap: getAddonByID: " + a + "\n");
addon = a;
updateVersion();
});