mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2024-11-27 20:07:37 +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-capable" content="yes" />
|
||||
<meta name="mobile-web-app-capable" content="yes" />
|
||||
<link rel="icon" href="/favicon.ico" sizes="any" />
|
||||
<link rel="icon" href="/icon.svg" type="image/svg+xml" />
|
||||
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
|
||||
<link rel="icon" href="favicon.ico" sizes="any" />
|
||||
<link rel="icon" href="icon.svg" type="image/svg+xml" />
|
||||
<link rel="apple-touch-icon" href="apple-touch-icon.png" />
|
||||
<meta name="theme-color" content="#000" />
|
||||
<title>VueTorrent</title>
|
||||
|
||||
<!-- PWA setup -->
|
||||
<link rel="manifest" href="/manifest.webmanifest" crossorigin="use-credentials" />
|
||||
<script src="/registerSW.js"></script>
|
||||
<link rel="manifest" href="manifest.webmanifest" crossorigin="use-credentials" />
|
||||
<script src="registerSW.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
'serviceWorker' in navigator &&
|
||||
window.addEventListener('load', async () => {
|
||||
await navigator.serviceWorker.register('/sw.js')
|
||||
await navigator.serviceWorker.register('sw.js')
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue