瀏覽代碼

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;
}
},


Loading…
取消
儲存