Created
November 19, 2021 15:20
-
-
Save leotm/1abc1d995a3707df0e31f528cce1fefd to your computer and use it in GitHub Desktop.
Log service worker registrations to the console
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
navigator.serviceWorker.getRegistrations().then((registrations) => { | |
for (const registration of registrations) { | |
console.log(registration) | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment