feat: show toast on dub-to-sub auto switch at player init
This commit is contained in:
@@ -94,6 +94,11 @@ const initPlayer = (): void => {
|
|||||||
setupAutoplayButton();
|
setupAutoplayButton();
|
||||||
updateAutoSkipButton();
|
updateAutoSkipButton();
|
||||||
showControls();
|
showControls();
|
||||||
|
if (state.modeSwitchedFrom === 'dub' && state.currentMode === 'sub') {
|
||||||
|
window.showToast?.({
|
||||||
|
message: `Episode ${state.currentEpisode} is only available in sub, switched from dub.`,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
const onLoadedMetadata = (): void => {
|
const onLoadedMetadata = (): void => {
|
||||||
loading && (loading.style.display = 'none');
|
loading && (loading.style.display = 'none');
|
||||||
|
|||||||
Reference in New Issue
Block a user