diff options
| author | Jake Mannens <jake@asger.xyz> | 2026-08-21 00:40:24 +1000 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2026-08-21 00:54:17 +1000 |
| commit | 9db75e240a2520eae0ffbc1f9aec757652d2ab03 (patch) | |
| tree | bee813d91f838b89dc50064ae0a5b91b88d3940b /Pages/_Host.cshtml | |
| parent | d32b0c57602a6de05f736e007aee9abbe450385d (diff) | |
Initial commitauth
Diffstat (limited to 'Pages/_Host.cshtml')
| -rw-r--r-- | Pages/_Host.cshtml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Pages/_Host.cshtml b/Pages/_Host.cshtml index 28ff24c..186f4f9 100644 --- a/Pages/_Host.cshtml +++ b/Pages/_Host.cshtml @@ -16,6 +16,13 @@ <script type="text/javascript" src="/js/dialog.js"></script> <script type="text/javascript" src="/js/keyboard.js"></script> <script type="text/javascript" src="/js/mobile.js"></script> + <script type="text/javascript"> + if('serviceWorker' in navigator) { + navigator.serviceWorker.register('/auth.js', { scope: '/' }) + .then((r) => console.log('Service worker registered with scope: ', r.scope)) + .catch((error) => console.error('Service worker registration failed: ', error)); + } + </script> <component type="typeof(HeadOutlet)" render-mode="ServerPrerendered" /> </head> <body> |
