Skip to content

Commit

Permalink
Merge pull request #2540 from vector-im/dbkr/fix_no_config
Browse files Browse the repository at this point in the history
Fix loading with no config from HTTP
  • Loading branch information
richvdh committed Nov 3, 2016
2 parents efd0dab + 3601b44 commit c1469f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vector/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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});
Expand Down

0 comments on commit c1469f4

Please sign in to comment.