mirror of https://github.com/vector-im/riot-web
Fix loading with no config from HTTP
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