gecko-dev/dom/serviceworkers/test/skip_waiting_installed_work...

7 строки
192 B
JavaScript

/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
self.addEventListener('install', evt => {
evt.waitUntil(self.skipWaiting());
});