summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
Diffstat (limited to 'public')
-rw-r--r--public/js/index.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/public/js/index.js b/public/js/index.js
index 6952cec7f6..d65419f2ac 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -2363,8 +2363,13 @@ function initHeatmap(appElementId, heatmapUser, locale) {
getColor: function(idx) {
var el = document.createElement('div');
el.className = 'heatmap-color-' + idx;
+ document.body.appendChild(el);
- return getComputedStyle(el).backgroundColor;
+ var color = getComputedStyle(el).backgroundColor;
+
+ document.body.removeChild(el);
+
+ return color;
}
},