Commit b06bd370 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

Fix SW Gadget Catch of error

parent 7b1c5363
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
}) })
.push(undefined, function (e) { .push(undefined, function (e) {
// Ugly Hack to reload page and make service worker available // Ugly Hack to reload page and make service worker available
if (e.indexOf("Please reload this page to allow Service Worker to control this page") > -1 ) { if (e && e.indexOf("Please reload this page to allow Service Worker to control this page") > -1 ) {
console.log("reload"); console.log("reload");
window.location.reload(false); window.location.reload(false);
throw(e); throw(e);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment