From a27f3552962582b81441add561a6a81ac8d0c16e Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Sun, 2 Nov 2014 17:55:34 +0200 Subject: fix borked tests - must use typeof to avoid exception on undefined variable --- scripts/app.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'scripts') 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 -- cgit v1.3.1