-
-
Save ankitamasand/e64e5e48c417e993e95946340528f533 to your computer and use it in GitHub Desktop.
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
let controller = navigator.serviceWorker.controller | |
if (controller) { | |
console.log('Your page is controlled by', controller) | |
} else { | |
console.log('Your page is not controlled by any service worker!') | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment