|
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 | */
|
|---|
| 8 | import { logger } from './_private/logger.js';
|
|---|
| 9 | import './_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 | */
|
|---|
| 17 | function 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 | }
|
|---|
| 27 | export { skipWaiting };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.