Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-25 19:26:09 +01:00

rethrow error instead of logging

This commit is contained in:
silverwind 2020-05-22 00:58:35 +02:00
parent 99d9b0f728
commit 043162ba1f
No known key found for this signature in database
GPG key ID: 2E62B41C93869443

View file

@ -15,8 +15,8 @@ export default async function initServiceWorker() {
try {
navigator.serviceWorker.register(`${AppSubUrl}/serviceworker.js`);
} catch (err) {
console.error(err);
await unregister();
throw err;
}
} else {
await unregister();