code cosmetics: contextMenus use prefs.subscribe()
This commit is contained in:
		
							parent
							
								
									468a758cec
								
							
						
					
					
						commit
						47eefd1cd2
					
				
							
								
								
									
										7
									
								
								prefs.js
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								prefs.js
									
									
									
									
									
								
							| 
						 | 
				
			
			@ -197,13 +197,6 @@ var prefs = new function Prefs() {
 | 
			
		|||
          }
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
      if (typeof contextMenus !== 'undefined') {
 | 
			
		||||
        for (const id in contextMenus) {
 | 
			
		||||
          if (typeof values[id] == 'boolean') {
 | 
			
		||||
            this.broadcast(id, values[id], {sync: false});
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
    chrome.storage.onChanged.addListener((changes, area) => {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user