mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-28 16:16:21 +08:00
17 lines
332 B
JavaScript
17 lines
332 B
JavaScript
navigator.serviceWorker.getRegistrations().then(function (e) {
|
|
for (
|
|
var r, i = e, t = Array.isArray(i), a = 0, i = t ? i : i[Symbol.iterator]();
|
|
;
|
|
|
|
) {
|
|
if (t) {
|
|
if (a >= i.length) break;
|
|
r = i[a++];
|
|
} else {
|
|
if ((a = i.next()).done) break;
|
|
r = a.value;
|
|
}
|
|
r.unregister();
|
|
}
|
|
});
|