add function similar to read.js to read image
This commit is contained in:
		
							parent
							
								
									795c97d800
								
							
						
					
					
						commit
						2aa5a00559
					
				
					 1 changed files with 11 additions and 0 deletions
				
			
		
							
								
								
									
										11
									
								
								scripts/GUI/browser.icon.js
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								scripts/GUI/browser.icon.js
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,11 @@ | |||
| class BrowserIcon { | ||||
|      /* Change the extension icon.  | ||||
|       | ||||
|      @param {string} path The path to the icon. | ||||
|      */ | ||||
|      static set(path) { | ||||
|           chrome.browserAction.setIcon({"path": path}); | ||||
|      }; | ||||
| }; | ||||
| 
 | ||||
| export {BrowserIcon as default}; | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue