mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2026-10-26 16:45:18 +00:00
Conditionally prewarm libbitsub workers and exclude module-worker glue asset from the ES5 syntax scan
This commit is contained in:
2 files changed
+3
No files matched your search
@@ -4,6 +4,7 @@
|
||||
"not": [
|
||||
"./dist/libraries/pdf.worker.js",
|
||||
"./dist/libraries/worker-bundle.js",
|
||||
"./dist/libbitsub.*.js",
|
||||
"./dist/serviceworker.js"
|
||||
]
|
||||
}
|
||||
@@ -507,9 +507,11 @@ export class HtmlVideoPlayer {
|
||||
|
||||
if (options.resetSubtitleOffset !== false) this.resetSubtitleOffset();
|
||||
|
||||
if (appSettings.get('subtitlerenderpgs') === 'true') {
|
||||
void import('libbitsub')
|
||||
.then(({ warmup }) => warmup())
|
||||
.catch((error) => console.warn('[libbitsub] worker prewarm failed; renderer fallback will be used', error));
|
||||
}
|
||||
|
||||
const elem = await this.createMediaElement(options);
|
||||
this.#applyAspectRatio(options.aspectRatio || this.getAspectRatio());
|
||||
|
||||
Reference in new issue
Block a user