https://github.com/angular/angular
Raw File
Tip revision: dad213e8c71eb31d140b7c9f48fc16827411f22c authored by Jessica Janiuk on 22 September 2021, 18:58:36 UTC
release: cut the v12.2.7 release (#43537)
Tip revision: dad213e
ngsw-worker.js
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */

// Mock `ngsw-worker.js` used for testing the examples.
// Immediately takes over and unregisters itself.
self.addEventListener('install', evt => evt.waitUntil(self.skipWaiting()));
self.addEventListener(
    'activate',
    evt => evt.waitUntil(self.clients.claim().then(() => self.registration.unregister())));
back to top