forked from extern/homer
feat(auth): do not handle redirection in getConfig
It will be handled by connectivity checker
This commit is contained in:
parent
f64278d41d
commit
132e9a0df5
@ -231,13 +231,7 @@ export default {
|
|||||||
},
|
},
|
||||||
getConfig: function (path = "assets/config.yml") {
|
getConfig: function (path = "assets/config.yml") {
|
||||||
return fetch(path).then((response) => {
|
return fetch(path).then((response) => {
|
||||||
if (response.redirected) {
|
if (response.status == 404 || response.redirected) {
|
||||||
// This allows to work with authentication proxies.
|
|
||||||
window.location.href = response.url;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (response.status == 404) {
|
|
||||||
this.configNotFound = true;
|
this.configNotFound = true;
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user