mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2026-09-02 19:43:13 +03:00
Conditionally prewarm libbitsub workers and exclude module-worker glue asset from the ES5 syntax scan
This commit is contained in:
@@ -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();
|
||||
|
||||
void import('libbitsub')
|
||||
.then(({ warmup }) => warmup())
|
||||
.catch((error) => console.warn('[libbitsub] worker prewarm failed; renderer fallback will be used', error));
|
||||
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