From effb7628d6ac1df2229c9cfdaf16edde046556fc Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Fri, 7 Nov 2014 17:18:59 +0000 Subject: [PATCH] sp_auth_path is used if defined, but falling back to pp2_path otherwise. There is now no default value for sp_auth_path. --- src/mkws-core.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mkws-core.js b/src/mkws-core.js index 7a1054b..7efe4a9 100644 --- a/src/mkws-core.js +++ b/src/mkws-core.js @@ -157,7 +157,7 @@ mkws.setMkwsConfig = function(overrides) { pp2_hostname: "sp-mkws.indexdata.com", pp2_path: "service-proxy/", service_proxy_auth: undefined, - sp_auth_path: "service-proxy/", + sp_auth_path: undefined, sp_auth_query: "command=auth&action=perconfig", sp_auth_credentials: undefined, lang: "", @@ -616,7 +616,8 @@ mkws.log("Using window.name '" + window.name + "'"); } else { var s = '//'; s += config.auth_hostname ? config.auth_hostname : config.pp2_hostname; - s += '/' + config.sp_auth_path; + s += '/'; + s += config.sp_auth_path ? config.sp_auth_path : config.pp2_path; var q = config.sp_auth_query; if (q) { s += '?' + q; -- 1.7.10.4