mirror of
https://github.com/go-gitea/gitea
synced 2024-12-22 04:17:52 +01:00
rethrow error instead of logging
This commit is contained in:
parent
99d9b0f728
commit
043162ba1f
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user