summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2014-11-02 17:55:34 +0200
committerAlon Levy <alon@pobox.com>2014-11-02 17:55:34 +0200
commita27f3552962582b81441add561a6a81ac8d0c16e (patch)
tree273262599c2c6cb8db746da132844cc722860357
parent7ee9de7c21322d29e4c1b19d1ea66353f021a23b (diff)
fix borked tests - must use typeof to avoid exception on undefined variable
-rw-r--r--scripts/app.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/app.js b/scripts/app.js
index 5abbe6f9..6257370d 100644
--- a/scripts/app.js
+++ b/scripts/app.js
@@ -9,8 +9,7 @@ var config = {
autocomplete: 'external/autocomplete',
}
}
-config.urlArgs = local_config && local_config.urlArgs;
-
+config.urlArgs = (typeof local_config != 'undefined') && local_config.urlArgs;
if (window.is_node) {
// Testing path only