debian-mirror-gitlab/app/assets/javascripts/streaming/polyfills.js
2023-05-27 22:25:52 +05:30

5 lines
318 B
JavaScript

import { createReadableStreamWrapper } from '@mattiasbuelens/web-streams-adapter';
import { ReadableStream as PolyfillReadableStream } from 'web-streams-polyfill';
// TODO: remove this when our WebStreams API reaches 100% support
export const toPolyfillReadable = createReadableStreamWrapper(PolyfillReadableStream);