mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix Blurhash worker on webOS 1.2
Webpack 5 doesn't polyfill Promise in the worker, so we use (deprecated) 'worker-loader', which does until Webpack 5 gets a fix.
This commit is contained in:
parent
cc6611a98a
commit
64fb71ee1e
4 changed files with 52 additions and 2 deletions
|
@ -1,8 +1,9 @@
|
|||
import Worker from './blurhash.worker.ts'; // eslint-disable-line import/default
|
||||
import * as lazyLoader from '../lazyLoader/lazyLoaderIntersectionObserver';
|
||||
import * as userSettings from '../../scripts/settings/userSettings';
|
||||
import './style.scss';
|
||||
// eslint-disable-next-line compat/compat
|
||||
const worker = new Worker(new URL('./blurhash.worker.ts', import.meta.url));
|
||||
const worker = new Worker();
|
||||
const targetDic = {};
|
||||
worker.addEventListener(
|
||||
'message',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue