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

@@ -49,7 +49,7 @@ export default function heatmap(art, danmuku, option) {
$stop = null;
$heatmap.innerHTML = '';
if (danmuku.danmus.length === 0) return;
if (!danmuku.danmus.length || !art.duration) return;
const svg = {
w: $heatmap.offsetWidth,