aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/components/ConnectivityChecker.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/ConnectivityChecker.vue')
-rw-r--r--src/components/ConnectivityChecker.vue5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/components/ConnectivityChecker.vue b/src/components/ConnectivityChecker.vue
index a717bcf..1c677d2 100644
--- a/src/components/ConnectivityChecker.vue
+++ b/src/components/ConnectivityChecker.vue
@@ -17,6 +17,9 @@ export default {
17 }; 17 };
18 }, 18 },
19 created: function () { 19 created: function () {
20 if (/t=\d+/.test(window.location.href)) {
21 window.history.replaceState({}, document.title, window.location.pathname);
22 }
20 let that = this; 23 let that = this;
21 this.checkOffline(); 24 this.checkOffline();
22 25
@@ -61,7 +64,7 @@ export default {
61 .then(function (response) { 64 .then(function (response) {
62 // opaqueredirect means request has been redirected, to auth provider probably 65 // opaqueredirect means request has been redirected, to auth provider probably
63 if (response.type === "opaqueredirect" && !response.ok) { 66 if (response.type === "opaqueredirect" && !response.ok) {
64 window.location.reload(true); 67 window.location.href = window.location.href + "?t="+(new Date().valueOf());
65 } 68 }
66 that.offline = !response.ok; 69 that.offline = !response.ok;
67 }) 70 })