浏览代码

Fix heatmap colors for Chrome/Safari (#5421)

tags/v1.7.0-dev
Lauris BH 5 年前
父节点
当前提交
f17524bd0c
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6
    1
      public/js/index.js

+ 6
- 1
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;
}
},


正在加载...
取消
保存