add promiser to window
This commit is contained in:
		
							parent
							
								
									93f0c3d800
								
							
						
					
					
						commit
						cd399c2937
					
				| @ -18,8 +18,9 @@ export default class MyPlugin extends Plugin { | ||||
| 		await this.loadSettings(); | ||||
| 		console.log(import.meta); | ||||
| 
 | ||||
| 		// This creates an icon in the left ribbon.
 | ||||
| 		await this.initSqlite(); | ||||
| 		await this.start(); | ||||
| 		(window as any).sqlite3Promiser = this.promiser; | ||||
| 	} | ||||
| 
 | ||||
| 	onunload() { | ||||
| @ -63,7 +64,6 @@ export default class MyPlugin extends Plugin { | ||||
| 				worker: () => w, | ||||
| 			}); | ||||
| 		}); | ||||
| 		await this.start(); | ||||
| 	} | ||||
| 
 | ||||
| 	async start() { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user