mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2025-02-25 20:00:50 +03:00
perf(sw): Use relative addresses for better compatibility with reverse proxies (#1511)
This commit is contained in:
parent
2922a85b6e
commit
a3dc22e27e
2 changed files with 6 additions and 6 deletions
10
index.html
10
index.html
|
@ -8,15 +8,15 @@
|
||||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
||||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||||
<meta name="mobile-web-app-capable" content="yes" />
|
<meta name="mobile-web-app-capable" content="yes" />
|
||||||
<link rel="icon" href="/favicon.ico" sizes="any" />
|
<link rel="icon" href="favicon.ico" sizes="any" />
|
||||||
<link rel="icon" href="/icon.svg" type="image/svg+xml" />
|
<link rel="icon" href="icon.svg" type="image/svg+xml" />
|
||||||
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
|
<link rel="apple-touch-icon" href="apple-touch-icon.png" />
|
||||||
<meta name="theme-color" content="#000" />
|
<meta name="theme-color" content="#000" />
|
||||||
<title>VueTorrent</title>
|
<title>VueTorrent</title>
|
||||||
|
|
||||||
<!-- PWA setup -->
|
<!-- PWA setup -->
|
||||||
<link rel="manifest" href="/manifest.webmanifest" crossorigin="use-credentials" />
|
<link rel="manifest" href="manifest.webmanifest" crossorigin="use-credentials" />
|
||||||
<script src="/registerSW.js"></script>
|
<script src="registerSW.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
'serviceWorker' in navigator &&
|
'serviceWorker' in navigator &&
|
||||||
window.addEventListener('load', async () => {
|
window.addEventListener('load', async () => {
|
||||||
await navigator.serviceWorker.register('/sw.js')
|
await navigator.serviceWorker.register('sw.js')
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Reference in a new issue