add direct options manipulation for side panel
This commit is contained in:
		
							parent
							
								
									729dd6dfbd
								
							
						
					
					
						commit
						9690529123
					
				
					 1 changed files with 7 additions and 1 deletions
				
			
		|  | @ -47,7 +47,13 @@ export default class Sidebar { | |||
| 			await chrome.sidePanel.setOptions({enabled: false}); | ||||
| 
 | ||||
| 			// Then, re-enable it. 
 | ||||
| 			await chrome.sidePanel.setOptions({enabled: true}); | ||||
| 			chrome.sidePanel.setOptions({enabled: true}); | ||||
| 		}; | ||||
| 	}; | ||||
| 
 | ||||
| 	// Set the options. 
 | ||||
| 	// @param {object} options the options
 | ||||
| 	async setOptions(options) { | ||||
| 		await chrome.sidePanel.setOptions(options); | ||||
| 	} | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue