fix: hot reload clear cache bug
This commit is contained in:
		
							parent
							
								
									2dac131b12
								
							
						
					
					
						commit
						8540d1b4cf
					
				@ -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();
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user