Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Unregister Dexecure Service Worker registrations
try {
navigator.serviceWorker.getRegistrations().then(function(registrations) {
registrations.forEach(function(registration) {
if ( &&"dexecure")) {
console.log('removing registration', registration);
} catch (e) {
console.log('failed to unregister all service workers', e);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment