https://github.com/angular/angular
Raw File
Tip revision: 024aba075cefaa1a247f135eced8f06fd1a59af4 authored by Miško Hevery on 11 July 2018, 20:43:59 UTC
release: cut the v6.0.8 release
Tip revision: 024aba0
safety-worker.js
/**
 * @license
 * Copyright Google Inc. 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
 */

// tslint:disable:no-console

self.addEventListener('install', event => { self.skipWaiting(); });

self.addEventListener('activate', event => {
  event.waitUntil(self.clients.claim());
  self.registration.unregister().then(
      () => { console.log('NGSW Safety Worker - unregistered old service worker'); });
});
back to top