mirror of https://github.com/vector-im/riot-web
Merge pull request #2540 from vector-im/dbkr/fix_no_config
Fix loading with no config from HTTPpull/2541/head
commit
c1469f4e39
|
@ -183,7 +183,7 @@ function getConfig() {
|
||||||
// we don't get 404s from file: URIs so this is the
|
// we don't get 404s from file: URIs so this is the
|
||||||
// only way we can not fail if the file doesn't exist
|
// only way we can not fail if the file doesn't exist
|
||||||
// when loading from a file:// URI.
|
// when loading from a file:// URI.
|
||||||
if (( err && err.response.status == 404) || body == '') {
|
if (( response && response.status == 404) || body == '') {
|
||||||
deferred.resolve({});
|
deferred.resolve({});
|
||||||
}
|
}
|
||||||
deferred.reject({err: err, response: response});
|
deferred.reject({err: err, response: response});
|
||||||
|
|
Loading…
Reference in New Issue