Disable jassub offset renderer for android chroem

This commit is contained in:
Zoe Roux 2023-12-12 23:27:14 +01:00
parent 6f81eeef7e
commit d593eb3134

View File

@ -289,8 +289,9 @@ const useSubtitle = (
workerUrl: "/_next/static/chunks/jassub-worker.js",
wasmUrl: "/_next/static/chunks/jassub-worker.wasm",
legacyWasmUrl: "/_next/static/chunks/jassub-worker.wasm.js",
// Disable offscreen renderer for firefox (see https://github.com/ThaUnknown/jassub/issues/31)
offscreenRender: !/firefox/i.test(navigator.userAgent),
// Disable offscreen renderer due to bugs on firefox and chrome android
// (see https://github.com/ThaUnknown/jassub/issues/31)
offscreenRender: false,
subUrl: value.link,
fonts: fonts,
});