fix: shutdown bug
This commit is contained in:
		
							parent
							
								
									ebddeeb3ef
								
							
						
					
					
						commit
						b69feab780
					
				
							
								
								
									
										1
									
								
								addon/bootstrap.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								addon/bootstrap.js
									
									
									
									
										vendored
									
									
								
							@ -54,7 +54,6 @@ function shutdown({ id, version, resourceURI, rootURI }, reason) {
 | 
			
		||||
  if (reason === APP_SHUTDOWN) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  Services.wm.removeListener(windowListener);
 | 
			
		||||
 | 
			
		||||
  if (typeof Zotero === "undefined") {
 | 
			
		||||
    Zotero = Components.classes["@zotero.org/Zotero;1"].getService(
 | 
			
		||||
 | 
			
		||||
@ -27,8 +27,7 @@ async function onStartup() {
 | 
			
		||||
 | 
			
		||||
async function onMainWindowLoad(win: Window): Promise<void> {
 | 
			
		||||
  // Create ztoolkit for every window
 | 
			
		||||
  const _ztoolkit = createZToolkit();
 | 
			
		||||
  addon.data.ztoolkit = _ztoolkit;
 | 
			
		||||
  addon.data.ztoolkit = createZToolkit();
 | 
			
		||||
 | 
			
		||||
  const popupWin = new ztoolkit.ProgressWindow(config.addonName, {
 | 
			
		||||
    closeOnClick: true,
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user