Skip to content

Commit 0ecc0ab

Browse files
committed
Update renderer.js
1 parent fc54256 commit 0ecc0ab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

danmu-desktop/renderer.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ function showdanmu(string, color = '#ffffff', range = 75, size = 10) {
2323
danmu.style.fontSize = `${size}vw`;
2424
// danmu.style.fontStretch='expanded';
2525
danmu.style.color=color
26-
danmu.style.opacity = range * 0.01
27-
}
28-
parentElement.appendChild(danmu);
26+
}
27+
danmu.style.opacity = range * 0.01
28+
parentElement.appendChild(danmu);
2929
}
3030

3131
const opacityInput = document.getElementById("customRange")

0 commit comments

Comments
 (0)