source: frontend/node_modules/workbox-core/skipWaiting.js

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: 873 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*/
8import { logger } from './_private/logger.js';
9import './_version.js';
10/**
11 * This method is deprecated, and will be removed in Workbox v7.
12 *
13 * Calling self.skipWaiting() is equivalent, and should be used instead.
14 *
15 * @memberof workbox-core
16 */
17function skipWaiting() {
18 // Just call self.skipWaiting() directly.
19 // See https://github.com/GoogleChrome/workbox/issues/2525
20 if (process.env.NODE_ENV !== 'production') {
21 logger.warn(`skipWaiting() from workbox-core is no longer recommended ` +
22 `and will be removed in Workbox v7. Using self.skipWaiting() instead ` +
23 `is equivalent.`);
24 }
25 void self.skipWaiting();
26}
27export { skipWaiting };
Note: See TracBrowser for help on using the repository browser.