Kaynağa Gözat

Fix heatmap colors for Chrome/Safari (#5421)

tags/v1.7.0-dev
Lauris BH 5 yıl önce
ebeveyn
işleme
f17524bd0c
No account linked to committer's email address
1 değiştirilmiş dosya ile 6 ekleme ve 1 silme
  1. 6
    1
      public/js/index.js

+ 6
- 1
public/js/index.js Dosyayı Görüntüle

@@ -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…
İptal
Kaydet