mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2025-10-14 00:59:29 +00:00
Tests: fix stream polyfilling in legacy browsers
web-streams-polyfill v4 has a different entrypoint for the polyfills.
This commit is contained in:
parent
f729d2bfa7
commit
40b6427658
@ -30,7 +30,7 @@ globalThis.loadStreamsPolyfill = function() {
|
||||
// do not polyfill Node
|
||||
const detectNodeWebStreams = () => typeof globalThis.process === 'object' && typeof globalThis.process.versions === 'object' && globalThis.ReadableStream;
|
||||
|
||||
return detectNodeWebStreams() || import('web-streams-polyfill');
|
||||
return detectNodeWebStreams() || import('web-streams-polyfill/polyfill');
|
||||
};
|
||||
|
||||
import runWorkerTests from './worker';
|
||||
|
Loading…
x
Reference in New Issue
Block a user