feat: Add service worker
All checks were successful
Build Docker / BuildImage (push) Successful in 49s

This commit is contained in:
2025-01-29 18:51:28 +11:00
parent d4136a396a
commit 8ccbe2ebf1
4 changed files with 65 additions and 5 deletions

View File

@@ -274,7 +274,12 @@ Check them out here!</blockquote><img class="img-fluid" src="/assets/img/pfront.
ethdomain.addEventListener('click', () => {
copyToClipboard(ethdomain);
});
</script>{{custom | safe}}
</script>{{custom | safe}}<script>
if (typeof navigator.serviceWorker !== 'undefined') {
navigator.serviceWorker.register('sw.js')
}
</script>
<div class="d-none d-print-none d-sm-none d-md-block d-lg-block d-xl-block d-xxl-block clock" style="padding: 1em;background: #10101039;border-top-right-radius: 10px;"><svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20" fill="none" class="fs-2">
<path fill-rule="evenodd" clip-rule="evenodd" d="M10 18C14.4183 18 18 14.4183 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 14.4183 5.58172 18 10 18ZM11 6C11 5.44772 10.5523 5 10 5C9.44771 5 9 5.44772 9 6V10C9 10.2652 9.10536 10.5196 9.29289 10.7071L12.1213 13.5355C12.5118 13.9261 13.145 13.9261 13.5355 13.5355C13.9261 13.145 13.9261 12.5118 13.5355 12.1213L11 9.58579V6Z" fill="currentColor"></path>