aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/App.vue
diff options
context:
space:
mode:
authorBastien Wirtz <bastien.wirtz@gmail.com>2022-06-04 09:07:15 +0200
committerGitHub <noreply@github.com>2022-06-04 09:07:15 +0200
commit2b48d1c057bf24776fb0538c7db0a0b156e667c5 (patch)
tree47a6b64226c3d3707b285a6de3838a2d7270b59f /src/App.vue
parent95d73348e5dd8fd0fbb1b6747c58b346ecf772ad (diff)
parent95249e11255beb8b85f904c54429b353fca40b9e (diff)
downloadhomer-2b48d1c057bf24776fb0538c7db0a0b156e667c5.tar.gz
homer-2b48d1c057bf24776fb0538c7db0a0b156e667c5.tar.zst
homer-2b48d1c057bf24776fb0538c7db0a0b156e667c5.zip
Merge pull request #448 from bemble/main
feat(pwa): enhance connectivity checks
Diffstat (limited to 'src/App.vue')
-rw-r--r--src/App.vue8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/App.vue b/src/App.vue
index c58fca1..664867f 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -231,13 +231,7 @@ export default {
231 }, 231 },
232 getConfig: function (path = "assets/config.yml") { 232 getConfig: function (path = "assets/config.yml") {
233 return fetch(path).then((response) => { 233 return fetch(path).then((response) => {
234 if (response.redirected) { 234 if (response.status == 404 || response.redirected) {
235 // This allows to work with authentication proxies.
236 window.location.href = response.url;
237 return;
238 }
239
240 if (response.status == 404) {
241 this.configNotFound = true; 235 this.configNotFound = true;
242 return {}; 236 return {};
243 } 237 }