From cc0a141ede859ae7729f682c6c547829628f85ad Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Thu, 20 Jun 2013 14:49:08 +0000 Subject: [PATCH] make the code more robust for the guys who forgot to define mkws_config variable ... --- experiments/spclient/mkws.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/experiments/spclient/mkws.js b/experiments/spclient/mkws.js index b966f1d..30bf3b2 100644 --- a/experiments/spclient/mkws.js +++ b/experiments/spclient/mkws.js @@ -3,6 +3,9 @@ "use strict"; // HTML5 +if (!mkws_config) + var mkws_config = {}; // for the guys who forgot to define mkws_config... + var pazpar2_url = mkws_config.pazpar2_url ? mkws_config.pazpar2_url : "/pazpar2/search.pz2"; var service_proxy_url = mkws_config.service_proxy_url ? mkws_config.service_proxy_url : "/service-proxy/"; -- 1.7.10.4