Created
October 28, 2019 14:45
-
-
Save thepassle/dd6362ecfad6c93fcb83c4e0c9bc4011 to your computer and use it in GitHub Desktop.
clientsclaim4
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
<script> | |
if ('serviceWorker' in navigator) { | |
window.addEventListener('load', () => { | |
navigator.serviceWorker.register('./sw.js'); | |
}); | |
} | |
setTimeout(() => { | |
const img = new Image(); | |
img.src = 'dog.svg'; | |
document.body.appendChild(img); | |
}, 3000); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment