mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Fix loading with no config from HTTP
This commit is contained in:
parent
efd0dab316
commit
3601b44429
@ -183,7 +183,7 @@ function getConfig() {
|
||||
// we don't get 404s from file: URIs so this is the
|
||||
// only way we can not fail if the file doesn't exist
|
||||
// when loading from a file:// URI.
|
||||
if (( err && err.response.status == 404) || body == '') {
|
||||
if (( response && response.status == 404) || body == '') {
|
||||
deferred.resolve({});
|
||||
}
|
||||
deferred.reject({err: err, response: response});
|
||||
|
Loading…
Reference in New Issue
Block a user