source: frontend/node_modules/workbox-streams/src/isSupported.ts

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 852 bytes
Line 
1/*
2 Copyright 2018 Google LLC
3
4 Use of this source code is governed by an MIT-style
5 license that can be found in the LICENSE file or at
6 https://opensource.org/licenses/MIT.
7*/
8
9import {canConstructReadableStream} from 'workbox-core/_private/canConstructReadableStream.js';
10import './_version.js';
11
12/**
13 * This is a utility method that determines whether the current browser supports
14 * the features required to create streamed responses. Currently, it checks if
15 * [`ReadableStream`](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream/ReadableStream)
16 * can be created.
17 *
18 * @return {boolean} `true`, if the current browser meets the requirements for
19 * streaming responses, and `false` otherwise.
20 *
21 * @memberof workbox-streams
22 */
23function isSupported(): boolean {
24 return canConstructReadableStream();
25}
26
27export {isSupported};
Note: See TracBrowser for help on using the repository browser.