ソースを参照

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


読み込み中…
キャンセル
保存