|
6 | 6 | showHeatMap = Countly.passed_data.showHeatMap == false ? false : true,
|
7 | 7 | clickMap,
|
8 | 8 | scrollMap;
|
| 9 | + |
| 10 | + Countly.passed_data.url = Countly.passed_data.url || Countly.url; |
9 | 11 |
|
10 |
| - Countly._internals.loadCSS(Countly.url + "/stylesheets/ionicons/css/ionicons.min.css", function() { |
11 |
| - Countly._internals.loadCSS(Countly.url + "/views/stylesheets/heatmap.css", function() { |
| 12 | + Countly._internals.loadCSS(Countly.passed_data.url + "/stylesheets/ionicons/css/ionicons.min.css", function() { |
| 13 | + Countly._internals.loadCSS(Countly.passed_data.url + "/views/stylesheets/heatmap.css", function() { |
12 | 14 | document.body.style.position = "relative";
|
13 | 15 | var origtop = document.body.style.top;
|
14 | 16 | var toppx = 59;
|
|
122 | 124 |
|
123 | 125 | //TOPBAR IMAGE
|
124 | 126 | var img = document.createElement('img');
|
125 |
| - img.src = Countly.url + "/images/dashboard/countly_logo.svg"; |
| 127 | + img.src = Countly.passed_data.url + "/images/dashboard/countly_logo.svg"; |
126 | 128 | img.setAttribute('class', 'cly-heatmap-logo');
|
127 | 129 | topbar.appendChild(img);
|
128 | 130 |
|
|
509 | 511 | period = Countly.passed_data.period || "30days",
|
510 | 512 | dataCache = {};
|
511 | 513 |
|
512 |
| - Countly._internals.loadJS(Countly.url + "/views/javascripts/simpleheat.js", function() { |
| 514 | + Countly._internals.loadJS(Countly.passed_data.url + "/views/javascripts/simpleheat.js", function() { |
513 | 515 | map = simpleheat("cly-heatmap-canvas-map");
|
514 | 516 | return cb(function(eventType, pageWidth, pageHeight, currentDevice, showHeatMap) {
|
515 | 517 | map.resize();
|
|
573 | 575 | period = Countly.passed_data.period || "30days",
|
574 | 576 | dataCache = {};
|
575 | 577 |
|
576 |
| - Countly._internals.loadJS(Countly.url + "/views/javascripts/simpleheat.js", function() { |
| 578 | + Countly._internals.loadJS(Countly.passed_data.url + "/views/javascripts/simpleheat.js", function() { |
577 | 579 | map = simpleheat("cly-heatmap-canvas-map");
|
578 | 580 | return cb(function(eventType, pageWidth, pageHeight, currentDevice, showHeatMap) {
|
579 | 581 | map.resize();
|
|
741 | 743 | }
|
742 | 744 |
|
743 | 745 | if (method === "GET") {
|
744 |
| - xhr.open('GET', Countly.url + apiPath + "?" + data, true); |
| 746 | + xhr.open('GET', Countly.passed_data.url + apiPath + "?" + data, true); |
745 | 747 | }
|
746 | 748 | else {
|
747 |
| - xhr.open('POST', Countly.url + apiPath, true); |
| 749 | + xhr.open('POST', Countly.passed_data.url + apiPath, true); |
748 | 750 | xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
|
749 | 751 | }
|
750 | 752 | xhr.setRequestHeader("countly-token", Countly._internals.getToken());
|
|
0 commit comments