call SP auth only for SP
[mkws-moved-to-github.git] / experiments / spclient / mkws.js
index 69a30f7..b966f1d 100644 (file)
@@ -433,7 +433,8 @@ function mkws_html_all(data) {
     </div>');
 
     mkws_html_switch(config);
-    mkws_service_proxy_auth(config.service_proxy_auth);
+    if (mkws_config.use_service_proxy)
+       mkws_service_proxy_auth(config.service_proxy_auth);
 
     domReady();
 }