modify comment
This commit is contained in:
		
							parent
							
								
									67c627e93f
								
							
						
					
					
						commit
						caee136b6b
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -98,7 +98,7 @@ export class Storage<T extends StateDef> {
 | 
			
		|||
	private async load(): Promise<void> {
 | 
			
		||||
		return new Promise((resolve, reject) => {
 | 
			
		||||
			if ($i) {
 | 
			
		||||
				// なぜかsetTimeoutしないとapi関数内でエラーになる(おそらく循環参照してることに原因がありそう)
 | 
			
		||||
				// api関数と循環参照なので一応setTimeoutしておく
 | 
			
		||||
				setTimeout(() => {
 | 
			
		||||
					api('i/registry/get-all', { scope: ['client', this.key] })
 | 
			
		||||
					.then(kvs => {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue