From 3601b4442924241b18a2960411bc29632e32a1af Mon Sep 17 00:00:00 2001
From: David Baker <dave@matrix.org>
Date: Thu, 3 Nov 2016 14:17:23 +0000
Subject: [PATCH] Fix loading with no config from HTTP

---
 src/vector/index.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/vector/index.js b/src/vector/index.js
index 9454e670..c8093a8d 100644
--- a/src/vector/index.js
+++ b/src/vector/index.js
@@ -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});