source: frontend/node_modules/workbox-core/src/clientsClaim.ts

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 595 bytes
Line 
1/*
2 Copyright 2019 Google LLC
3
4 Use of this source code is governed by an MIT-style
5 license that can be found in the LICENSE file or at
6 https://opensource.org/licenses/MIT.
7*/
8
9import './_version.js';
10
11// Give TypeScript the correct global.
12declare let self: ServiceWorkerGlobalScope;
13
14/**
15 * Claim any currently available clients once the service worker
16 * becomes active. This is normally used in conjunction with `skipWaiting()`.
17 *
18 * @memberof workbox-core
19 */
20function clientsClaim(): void {
21 self.addEventListener('activate', () => self.clients.claim());
22}
23
24export {clientsClaim};
Note: See TracBrowser for help on using the repository browser.