diff options
| author | Alon Levy <alon@pobox.com> | 2014-11-02 17:55:34 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2014-11-02 17:55:34 +0200 |
| commit | a27f3552962582b81441add561a6a81ac8d0c16e (patch) | |
| tree | 273262599c2c6cb8db746da132844cc722860357 /scripts/app.js | |
| parent | 7ee9de7c21322d29e4c1b19d1ea66353f021a23b (diff) | |
fix borked tests - must use typeof to avoid exception on undefined variable
Diffstat (limited to 'scripts/app.js')
| -rw-r--r-- | scripts/app.js | 3 |
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 |
