https://github.com/angular/angular
Raw File
Tip revision: c4553bbed9752afa00ed2f3b66415660d7bf3209 authored by Joey Perrott on 07 October 2020, 21:20:12 UTC
release: cut the v10.1.5 release
Tip revision: c4553bb
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