fetch-ie8
Advanced tools
Comparing version 1.0.0 to 1.1.0
(function() { | ||
'use strict'; | ||
if (self.fetch) { | ||
// if __disableNativeFetch is set to true, the it will always polyfill fetch | ||
// with Ajax. | ||
if (!self.__disableNativeFetch && self.fetch) { | ||
return | ||
@@ -6,0 +8,0 @@ } |
{ | ||
"name": "fetch-ie8", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"main": "fetch.js", | ||
@@ -5,0 +5,0 @@ "repository": "camsong/fetch", |
# window.fetch polyfill | ||
**This fork supports IE8 with es5-shim, es5-sham and es6-promise** | ||
**If you need to support JSONP, checkout [fetch-jsonp](https://github.com/camsong/fetch-jsonp)** | ||
**This fork supports IE8 with es5-shim, es5-sham and es6-promise.** | ||
**If you also use JSONP, checkout [fetch-jsonp](https://github.com/camsong/fetch-jsonp).** | ||
**Fetch API is still very new and not fully supported in some browsers, so you may | ||
need to check browser verson as well as if `window.fetch` exists. In this case, | ||
you can set `window.__disableNativeFetch = true` to use AJAX polyfill always.** | ||
The global `fetch` function is an easier way to make web requests and handle | ||
@@ -7,0 +12,0 @@ responses than using an XMLHttpRequest. This polyfill is written as closely as |
15351
310
169