use typeof to check if a parameter is set
authorWolfram Schneider <wosch@indexdata.dk>
Tue, 25 Jun 2013 14:00:22 +0000 (14:00 +0000)
committerWolfram Schneider <wosch@indexdata.dk>
Tue, 25 Jun 2013 14:00:22 +0000 (14:00 +0000)
experiments/spclient/mkws.js

index 6f20290..e3e5fe5 100644 (file)
@@ -13,7 +13,7 @@
 if (!mkws_config)
     var mkws_config = {}; // for the guys who forgot to define mkws_config...
 
-if (mkws_config.use_service_proxy === 'undefined')
+if (typeof mkws_config.use_service_proxy === 'undefined')
     mkws_config.use_service_proxy = true;
 
 var mkws_debug = 1;