Pwa support, maybe

This commit is contained in:
2026-07-21 15:13:16 +10:00
parent 49cecad06d
commit ee25b9a94d
8 changed files with 109 additions and 2 deletions

View File

@@ -8,6 +8,15 @@
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="apple-mobile-web-app-title" content="NVR Messenger" />
<meta name="format-detection" content="telephone=no" />
<script>
// Vite emits relative assets for the packaged Electron file:// build.
// Web/PWA deep links need those same URLs rooted at the HTTPS origin.
if (location.protocol !== 'file:') {
const base = document.createElement('base')
base.href = '/'
document.head.append(base)
}
</script>
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" href="/favicon.svg" />
<title>Native Vue Messenger</title>