/
githubmirror
/
angular
Обзор
Документация
Войти
/
githubmirror
/
angular
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/examples/service-worker/push/ngsw-worker.js
14 строк
516 B
Jessica Janiuk
Revert "fix(service-worker): update service worker to handle seeking better for videos (#60029)" (#62422)
02 июл 2025, 10:50
02 июл 2025, 10:50
f9abb55
Код
Авторство
О чём код?
/** * @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.dev/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())), );