fix: use new for throw error

Co-Authored-By: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
This commit is contained in:
syuilo
2022-08-01 17:44:53 +09:00
parent 78f061b9db
commit f3164c9cf2
2 changed files with 10 additions and 10 deletions

View File

@ -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);