Last active
June 20, 2019 15:48
-
-
Save depoulo/d59ad968e2728bc2d81b0baf0e537b37 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try { | |
document.body.innerHTML = | |
'<div id="sw-failure" style="z-index: 1; position: fixed; pointer-events: none">ServiceWorker failed</div>' | |
+ document.body.innerHTML | |
} catch (_err) { | |
console.log('Hello from ServiceWorker', String(registration)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment