From: Wolfram Schneider Date: Thu, 20 Jun 2013 14:49:08 +0000 (+0000) Subject: make the code more robust X-Git-Tag: 0.9.1~574^2~8 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=cc0a141ede859ae7729f682c6c547829628f85ad;p=mkws-moved-to-github.git make the code more robust for the guys who forgot to define mkws_config variable ... --- 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/";