diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/components/ConnectivityChecker.vue | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/components/ConnectivityChecker.vue b/src/components/ConnectivityChecker.vue index 0e724fc..5c77618 100644 --- a/src/components/ConnectivityChecker.vue +++ b/src/components/ConnectivityChecker.vue | |||
@@ -56,9 +56,8 @@ export default { | |||
56 | 56 | ||
57 | // extra check to make sure we're not offline | 57 | // extra check to make sure we're not offline |
58 | let that = this; | 58 | let that = this; |
59 | const aliveCheckUrl = `${window.location.origin}${ | 59 | const urlPath = window.location.pathname.replace(/\/+$/, ""); |
60 | window.location.pathname | 60 | const aliveCheckUrl = `${window.location.origin}${urlPath}/index.html?t=${new Date().valueOf()}`; |
61 | }/index.html?t=${new Date().valueOf()}`; | ||
62 | return fetch(aliveCheckUrl, { | 61 | return fetch(aliveCheckUrl, { |
63 | method: "HEAD", | 62 | method: "HEAD", |
64 | cache: "no-store", | 63 | cache: "no-store", |