Merge pull request #2540 from vector-im/dbkr/fix_no_config

Fix loading with no config from HTTP
This commit is contained in:
Richard van der Hoff 2016-11-03 14:20:30 +00:00 committed by GitHub
commit c1469f4e39
1 changed files with 1 additions and 1 deletions

View File

@ -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});