update heatmap

This commit is contained in:
Harvey Zack committed 2023-05-02 20:03:29 +08:00
1 parent ebc915e3ab
commit 9ea091856b
3 files changed
+3 -3

No files matched your search

@@ -1214,7 +1214,7 @@ function heatmap(art, danmuku, option) {
$start = null;
$stop = null;
$heatmap.innerHTML = "";
if (danmuku.danmus.length === 0) return;
if (!danmuku.danmus.length || !art.duration) return;
const svg = {
w: $heatmap.offsetWidth,
h: $heatmap.offsetHeight