UNPKG

api-console-assets

Version:

This repo only exists to publish api console components to npm

36 lines (29 loc) 1.26 kB
<!-- @license Copyright 2016 The Advanced REST client authors <arc@mulesoft.com> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <!-- A web components wrapper for the fetch polyfill from the https://github.com/github/fetch Import it into the app and use the Fetch API ### Example ``` <link rel="import" href="bower_components/fetch-polyfill/fetch-polyfill.html"> ``` After you import the element a `fetch` object in global namespace will be set. The element is helpful if many web components require Fetch polyfill. When used as an import it will be loaded only once. Note that this code affects only those browsers that don't support fetch API. At the moment Chrome and Firefox has native support. @group Logic @element fetch-polyfill --> <script src="../fetch/fetch.js"></script>