Clear startup cache when uninstalling/upgrading plugins
https://groups.google.com/g/zotero-dev/c/0nfU-F2q1uI/m/1jBVmMZxBAAJ Removed by Mozilla in https://bugzilla.mozilla.org/show_bug.cgi?id=1445739, since WebExtensions don't put anything in the startup cache
This commit is contained in:
parent
838152155e
commit
65fe50d11f
1 changed files with 2 additions and 0 deletions
|
@ -363,6 +363,7 @@ Zotero.Plugins = new function () {
|
|||
await _callMethod(existingAddon, 'shutdown', reason);
|
||||
}
|
||||
await _callMethod(existingAddon, 'uninstall', reason);
|
||||
Services.obs.notifyObservers(null, "startupcache-invalidate");
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -415,6 +416,7 @@ Zotero.Plugins = new function () {
|
|||
await _callMethod(addon, 'shutdown', REASONS.ADDON_UNINSTALL);
|
||||
}
|
||||
await _callMethod(addon, 'uninstall', REASONS.ADDON_UNINSTALL);
|
||||
Services.obs.notifyObservers(null, "startupcache-invalidate");
|
||||
unregisterLocales(addon);
|
||||
clearDefaultPrefs(addon);
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue