|
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:
846 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 | import { canConstructReadableStream } from 'workbox-core/_private/canConstructReadableStream.js';
|
|---|
| 9 | import './_version.js';
|
|---|
| 10 | /**
|
|---|
| 11 | * This is a utility method that determines whether the current browser supports
|
|---|
| 12 | * the features required to create streamed responses. Currently, it checks if
|
|---|
| 13 | * [`ReadableStream`](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream/ReadableStream)
|
|---|
| 14 | * can be created.
|
|---|
| 15 | *
|
|---|
| 16 | * @return {boolean} `true`, if the current browser meets the requirements for
|
|---|
| 17 | * streaming responses, and `false` otherwise.
|
|---|
| 18 | *
|
|---|
| 19 | * @memberof workbox-streams
|
|---|
| 20 | */
|
|---|
| 21 | function isSupported() {
|
|---|
| 22 | return canConstructReadableStream();
|
|---|
| 23 | }
|
|---|
| 24 | export { isSupported };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.