Created
August 12, 2018 04:42
-
-
Save masalib/5a908fec2a5688371e2fdaa06b0d0a0d to your computer and use it in GitHub Desktop.
PWA:Workboxのサンプル1
This file contains 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
importScripts('https://storage.googleapis.com/workbox-cdn/releases/3.4.1/workbox-sw.js'); | |
if (workbox) { | |
console.log(`Yay! Workbox is loaded 🎉`); | |
} else { | |
console.log(`Boo! Workbox didn't load 😬`); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment