Client
Client
context.proxy = false;
context.ccidURL = function(k) {
var h = context.consts.host;
return (k == "host"? "": h) + context.consts[k];
};
context.url = function(k) {
var h = context.consts.host;
if (context.proxy) {
h = window.location.protocol + "//" + (window.ccid.proxyHost ||
window.location.host) + "/ccid";
} else if (k === "ns") {
return context.consts.ns_url;
} else if (k === "api") {
h = context.consts.api_url;
}