mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-05 22:24:13 +01:00
[bootstrap] Purge stale modules on upgrade as well as explicit rehash.
--HG-- branch : bootstrapped
This commit is contained in:
3
common/bootstrap.js
vendored
3
common/bootstrap.js
vendored
@@ -186,6 +186,9 @@ function init() {
|
||||
function shutdown(data, reason) {
|
||||
dump("dactyl: bootstrap: shutdown " + reasonToString(reason) + "\n");
|
||||
if (reason != APP_SHUTDOWN) {
|
||||
if ([ADDON_UPGRADE, ADDON_DOWNGRADE, ADDON_UNINSTALL].indexOf(reason) >= 0)
|
||||
services.observer.notifyObservers(null, "dactyl-purge", null);
|
||||
|
||||
services.observer.notifyObservers(null, "dactyl-cleanup", null);
|
||||
for (let factory in values(components))
|
||||
// TODO: Categories;
|
||||
|
||||
Reference in New Issue
Block a user