fix: default prefs loading bug
This commit is contained in:
		
							parent
							
								
									7b9e139cb8
								
							
						
					
					
						commit
						576c08b5cf
					
				
							
								
								
									
										4
									
								
								addon/bootstrap.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								addon/bootstrap.js
									
									
									
									
										vendored
									
									
								
							@ -80,9 +80,7 @@ async function startup({ id, version, resourceURI, rootURI }, reason) {
 | 
			
		||||
      ["locale", "__addonRef__", "zh-CN", rootURI + "chrome/locale/zh-CN/"],
 | 
			
		||||
    ]);
 | 
			
		||||
  } else {
 | 
			
		||||
    if (reason == ADDON_INSTALL || reason == ADDON_ENABLE) {
 | 
			
		||||
      setDefaultPrefs(rootURI);
 | 
			
		||||
    }
 | 
			
		||||
    setDefaultPrefs(rootURI);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Global variables for plugin code
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user