diff options
author | Bastien Wirtz <bastien.wirtz@gmail.com> | 2022-07-13 13:46:03 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-13 13:46:03 -0700 |
commit | c11c45a661addf377ac5f4773ba39f5ef66ec155 (patch) | |
tree | 204cd561549dd6424d7e07c88b042e3bce62d608 /src/components/ConnectivityChecker.vue | |
parent | d57821b5fa8b994bc4082f7565a072090ff288a1 (diff) | |
parent | 0eca982f8bc89bbac3ed4fee248fc53b7c4c0527 (diff) | |
download | homer-c11c45a661addf377ac5f4773ba39f5ef66ec155.tar.gz homer-c11c45a661addf377ac5f4773ba39f5ef66ec155.tar.zst homer-c11c45a661addf377ac5f4773ba39f5ef66ec155.zip |
Merge pull request #482 from bastienwirtz/vuejs-3
Vuejs 3
Diffstat (limited to 'src/components/ConnectivityChecker.vue')
-rw-r--r-- | src/components/ConnectivityChecker.vue | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/ConnectivityChecker.vue b/src/components/ConnectivityChecker.vue index 2b3e47b..0e724fc 100644 --- a/src/components/ConnectivityChecker.vue +++ b/src/components/ConnectivityChecker.vue | |||
@@ -56,7 +56,9 @@ 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.href + "?t=" + new Date().valueOf(); | 59 | const aliveCheckUrl = `${window.location.origin}${ |
60 | window.location.pathname | ||
61 | }/index.html?t=${new Date().valueOf()}`; | ||
60 | return fetch(aliveCheckUrl, { | 62 | return fetch(aliveCheckUrl, { |
61 | method: "HEAD", | 63 | method: "HEAD", |
62 | cache: "no-store", | 64 | cache: "no-store", |