The autorun data is stored globally
This commit is contained in:
		
							parent
							
								
									a10a14893a
								
							
						
					
					
						commit
						3fa346a7af
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -1,5 +1,5 @@ | ||||||
| import Sidebar from '../GUI/sidebar.js'; | import Sidebar from '../GUI/sidebar.js'; | ||||||
| import {read, write} from '../secretariat.js'; | import {global} from '../secretariat.js'; | ||||||
| 
 | 
 | ||||||
| class sidebar_handler extends Page { | class sidebar_handler extends Page { | ||||||
|      constructor () { |      constructor () { | ||||||
|  | @ -7,6 +7,6 @@ class sidebar_handler extends Page { | ||||||
|      } |      } | ||||||
| 
 | 
 | ||||||
|      async activate () { |      async activate () { | ||||||
|           await read(`settings,behavior,autoRun`) |           await global.read(`settings,behavior,autoRun`) | ||||||
|      } |      } | ||||||
| } | } | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue