Merge pull request #859 from PZ157/PR-Branch

bugfix
This commit is contained in:
Spmario233 2024-01-27 13:19:30 +08:00 committed by GitHub
commit aee365eba4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -682,7 +682,7 @@ export const Content = {
game.resume(); game.resume();
_status.imchoosing = false; _status.imchoosing = false;
if (roundmenu) ui.roundmenu.style.display = ''; if (roundmenu) ui.roundmenu.style.display = '';
if (ui.backgroundMusic) ui.backgroundMusic.play(); if (ui.backgroundMusic && !isNaN(ui.backgroundMusic.duration)) ui.backgroundMusic.play();
hitsound_audio.remove(); hitsound_audio.remove();
}, 1000); }, 1000);
}; };
@ -870,7 +870,7 @@ export const Content = {
if (dialog) { if (dialog) {
dialog.close(); dialog.close();
} }
if (ui.backgroundMusic) ui.backgroundMusic.play(); if (ui.backgroundMusic && !isNaN(ui.backgroundMusic.duration)) ui.backgroundMusic.play();
}, event.videoId, event.time); }, event.videoId, event.time);
var result = event.result || result; var result = event.result || result;
event.result = result; event.result = result;
@ -2164,7 +2164,7 @@ export const Content = {
next.player = player; next.player = player;
next._trigger = trigger; next._trigger = trigger;
next.triggername = event.triggername; next.triggername = event.triggername;
// if ("contents" in info && Array.isArray(info.contents)) { // if ("contents" in info && Array.isArray(info.contents)) {
// next.setContents(info.contents); // next.setContents(info.contents);
// } else { // } else {