Skip to content

Commit

Permalink
fix: hot reload clear cache bug
Browse files Browse the repository at this point in the history
  • Loading branch information
windingwind committed Jun 13, 2023
1 parent 2dac131 commit 8540d1b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/reload.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 8540d1b

Please sign in to comment.