fix: use new for throw error
Co-Authored-By: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
This commit is contained in:
		
							parent
							
								
									78f061b9db
								
							
						
					
					
						commit
						f3164c9cf2
					
				
					 2 changed files with 10 additions and 10 deletions
				
			
		|  | @ -27,7 +27,7 @@ html | |||
| 						.then(registrations => { | ||||
| 							return Promise.all(registrations.map(registration => registration.unregister())); | ||||
| 						}) | ||||
| 						.catch(e => { throw Error(e) }); | ||||
| 						.catch(e => { throw new Error(e) }); | ||||
| 				} | ||||
| 
 | ||||
| 				message(successText); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue