2 * Any copyright is dedicated to the Public Domain.
3 * http://creativecommons.org/publicdomain/zero/1.0/
6 registration.onupdatefound = function (e) {
7 clients.matchAll().then(function (clients) {
9 // We don't control any clients when the first update event is fired
10 // because we haven't reached the 'activated' state.
14 if (registration.scope.match(/updatefoundevent\.html$/)) {
15 clients[0].postMessage("finish");
17 dump("Scope did not match");