diff options
author | Pierre <397503+bemble@users.noreply.github.com> | 2022-05-30 17:04:21 +0200 |
---|---|---|
committer | Pierre <397503+bemble@users.noreply.github.com> | 2022-05-30 17:04:21 +0200 |
commit | 132e9a0df516b50c854178ccb726cf9d9dc514fa (patch) | |
tree | 97aff6350a3367d2883e86b4907755063c1cf2cd | |
parent | f64278d41d9850461871c1c7908f0c35cbca05cd (diff) | |
download | homer-132e9a0df516b50c854178ccb726cf9d9dc514fa.tar.gz homer-132e9a0df516b50c854178ccb726cf9d9dc514fa.tar.zst homer-132e9a0df516b50c854178ccb726cf9d9dc514fa.zip |
feat(auth): do not handle redirection in getConfig
It will be handled by connectivity checker
-rw-r--r-- | src/App.vue | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/App.vue b/src/App.vue index 515177e..a60c242 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 | } |