mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-04 10:21:40 +00:00
29 lines
675 B
Templ
29 lines
675 B
Templ
package main
|
|||
|
|
|
||
|
|
templ VaultIndex() {
|
||
|
|
<!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>
|
||
|
|
<body>
|
||
|
|
<h1>Sonr Vault</h1>
|
||
|
|
</body>
|
||
|
|
</html>
|
||
|
|
}
|