mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-04 02:11:40 +00:00
22 lines
599 B
HTML
22 lines
599 B
HTML
<!doctype html>
|
|||
|
|
<html lang="en">
|
||
|
|
<head>
|
||
|
|
<meta charset="UTF-8" />
|
||
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||
|
|
<title>Sonr Vault</title>
|
||
|
|
<script>
|
||
|
|
navigator.serviceWorker.register({ swPath });
|
||
|
|
|
||
|
|
// Skip installed stage and jump to activating stage
|
||
|
|
addEventListener("install", (event) => {
|
||
|
|
event.waitUntil(skipWaiting());
|
||
|
|
});
|
||
|
|
|
||
|
|
// Start controlling clients as soon as the SW is activated
|
||
|
|
addEventListener("activate", (event) => {
|
||
|
|
event.waitUntil(clients.claim());
|
||
|
|
});
|
||
|
|
</script>
|
||
|
|
</head>
|
||
|
|
</html>
|