fix: hot reload clear cache bug

This commit is contained in:
windingwind 2023-06-13 16:20:30 +08:00
parent 2dac131b12
commit 8540d1b4cf

View File

@ -18,6 +18,7 @@ const startZotero = `${zoteroPath} --debugger --purgecaches ${
const script = `
(async () => {
Services.obs.notifyObservers(null, "startupcache-invalidate", null);
const { AddonManager } = ChromeUtils.import("resource://gre/modules/AddonManager.jsm");
const addon = await AddonManager.getAddonByID("${addonID}");
await addon.reload();