通知設定が開けないのを修正
This commit is contained in:
		
							parent
							
								
									666c9be447
								
							
						
					
					
						commit
						e6112506df
					
				
					 1 changed files with 18 additions and 14 deletions
				
			
		|  | @ -141,6 +141,9 @@ function encode(buffer: ArrayBuffer | null) { | |||
| 	return outputArray; | ||||
| } | ||||
| 
 | ||||
| if (navigator.serviceWorker == null) { | ||||
| 	// TODO: よしなに? | ||||
| } else { | ||||
| 	navigator.serviceWorker.ready.then(async swr => { | ||||
| 		registration = swr; | ||||
| 
 | ||||
|  | @ -160,6 +163,7 @@ navigator.serviceWorker.ready.then(async swr => { | |||
| 			} | ||||
| 		} | ||||
| 	}); | ||||
| } | ||||
| 
 | ||||
| defineExpose({ | ||||
| 	pushRegistrationInServer: $$(pushRegistrationInServer), | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue