Files
workbox/infra/testing/server/templates/sw-skip-waiting-on-message.js.njk
Jeffrey PosnickandGitHub c8b996548f messageSkipWaiting() method for workbox-window (#2489)
* new messageSkipWaiting method

* Remove property replacement

* Linting
2020-06-15 15:55:09 -04:00

16 lines
313 B
Plaintext

/*
Copyright 2019 Google LLC
Use of this source code is governed by an MIT-style
license that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
*/
// {{ version }}
addEventListener('message', (event) => {
if (event.data.type === 'SKIP_WAITING') {
skipWaiting();
}
});