fix: reduce unchecked type-cast

This commit is contained in:
JellyBrick
2023-09-30 08:35:16 +09:00
parent f532398a9c
commit 72660f5aa1
15 changed files with 256 additions and 178 deletions

View File

@ -104,7 +104,7 @@ const syncVideoWithTransitionAudio = () => {
video.removeEventListener('timeupdate', transitionBeforeEnd);
// Go to next video - XXX: does not support "repeat 1" mode
(document.querySelector('.next-button') as HTMLButtonElement).click();
document.querySelector<HTMLButtonElement>('.next-button')?.click();
}
};