mirror of
https://github.com/Redocly/redoc.git
synced 2025-01-31 10:04:08 +03:00
fix: fix worker import
This commit is contained in:
parent
29b0846e57
commit
4896346998
|
@ -6,7 +6,7 @@ let worker;
|
||||||
if (typeof URL !== 'undefined') {
|
if (typeof URL !== 'undefined') {
|
||||||
try {
|
try {
|
||||||
// tslint:disable-next-line
|
// tslint:disable-next-line
|
||||||
worker = require('workerize-loader?inline&fallback=false!./SearchWorker.worker').default;
|
worker = require('workerize-loader?inline&fallback=false!./SearchWorker.worker');
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
worker = require('./SearchWorker.worker').default;
|
worker = require('./SearchWorker.worker').default;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user