diff --git a/src/userscript.ts b/src/userscript.ts index ddf5136f..ce5ec932 100644 --- a/src/userscript.ts +++ b/src/userscript.ts @@ -117450,7 +117450,7 @@ var $$IMU_EXPORT$$; let title = subtitle.title || null; let mime = subtitle.mime || undefined; let forced = false; - player.addTextTrack(subtitle.url, language, kind, mime, undefined, title, forced); + player.addTextTrackAsync(subtitle.url, language, kind, mime, undefined, title, forced); } } diff --git a/userscript.user.js b/userscript.user.js index 150fef80..6d1cafe6 100644 --- a/userscript.user.js +++ b/userscript.user.js @@ -104548,7 +104548,7 @@ var $$IMU_EXPORT$$; var title = subtitle.title || null; var mime = subtitle.mime || undefined; var forced = false; - player.addTextTrack(subtitle.url, language, kind, mime, undefined, title, forced); + player.addTextTrackAsync(subtitle.url, language, kind, mime, undefined, title, forced); } } var text_tracks = player.getTextTracks();