mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-22 12:54:53 -05:00
rethrow error instead of logging
This commit is contained in:
parent
99d9b0f728
commit
043162ba1f
1 changed files with 1 additions and 1 deletions
|
@ -15,8 +15,8 @@ export default async function initServiceWorker() {
|
||||||
try {
|
try {
|
||||||
navigator.serviceWorker.register(`${AppSubUrl}/serviceworker.js`);
|
navigator.serviceWorker.register(`${AppSubUrl}/serviceworker.js`);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error(err);
|
|
||||||
await unregister();
|
await unregister();
|
||||||
|
throw err;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
await unregister();
|
await unregister();
|
||||||
|
|
Loading…
Reference in a new issue