update danmuku.js

This commit is contained in:
Harvey Zack committed 2022-05-14 22:00:28 +08:00
1 parent 1ba6898705
commit c568076b6b
15 files changed
+197 -192

No files matched your search

@@ -461,9 +461,15 @@ export default class Danmuku {
danmu.time = this.art.currentTime + 0.5;
}
if (danmu.mode === undefined) {
danmu.mode = this.option.mode;
}
if (danmu.color === undefined) {
danmu.color = this.option.color;
}
this.queue.push({
mode: this.option.mode,
color: this.option.color,
...danmu,
$state: 'wait',
$ref: null,