Asynchronously wait for the writing to complete
This commit is contained in:
		
							parent
							
								
									ed47e40bd1
								
							
						
					
					
						commit
						f38d690b57
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -136,9 +136,9 @@ class global { | ||||||
| 			: false; | 			: false; | ||||||
| 
 | 
 | ||||||
| 		// Write!
 | 		// Write!
 | ||||||
| 		chrome.storage[(CLOUD > 0) ? `sync` : `local`].set(DATA_INJECTED); | 		await chrome.storage[(CLOUD > 0) ? `sync` : `local`].set(DATA_INJECTED); | ||||||
| 		GUI_INFO[`log`] ? GUI_INFO[`log`].clear() : false; | 		GUI_INFO[`log`] ? GUI_INFO[`log`].clear() : false; | ||||||
| 		return ((OPTIONS[`verify`] != null ? (OPTIONS[`verify`]) : true) ? verify(DATA_NAME, data) : true); | 		return ((OPTIONS[`verify`] != null ? (OPTIONS[`verify`]) : true) ? await verify(DATA_NAME, data) : true); | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	/* | 	/* | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue