mirror of
https://github.com/hanzoai/workbox.git
synced 2026-10-30 14:46:34 +00:00
* new messageSkipWaiting method * Remove property replacement * Linting
16 lines
313 B
Plaintext
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();
|
|
}
|
|
});
|