1
0
Fork 0
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:
Dmitry Lyzo 2021-12-31 00:04:12 +03:00
parent cc6611a98a
commit 64fb71ee1e
4 changed files with 52 additions and 2 deletions

View file

@ -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',