Skip to content

Commit

Permalink
rethrow error instead of logging
Browse files Browse the repository at this point in the history
  • Loading branch information
silverwind committed May 21, 2020
1 parent 99d9b0f commit 043162b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web_src/js/features/serviceworker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 043162b

Please sign in to comment.