fetch-ie8
Advanced tools
Comparing version 1.4.0 to 1.4.1
@@ -108,3 +108,9 @@ (function() { | ||
var reader = new FileReader() | ||
reader.readAsText(blob) | ||
var _charset = blob.type.match(/charset\=[0-9a-zA-Z\-\_]*;?/) | ||
var args = [blob] | ||
if(_charset) { | ||
args.push(_charset[0].replace(/^charset\=/, '').replace(/;$/, '')) | ||
} | ||
reader.readAsText.apply(reader, args) | ||
return fileReaderReady(reader) | ||
@@ -111,0 +117,0 @@ } |
@@ -0,1 +1,5 @@ | ||
1.4.1 / 2016-01-20 | ||
================== | ||
* Make blob supporting different encoding, fixed #1 | ||
1.4.0 / 2015-12-09 | ||
@@ -2,0 +6,0 @@ ================== |
{ | ||
"name": "fetch-ie8", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"main": "fetch.js", | ||
@@ -5,0 +5,0 @@ "repository": "camsong/fetch", |
@@ -17,6 +17,4 @@ # window.fetch polyfill | ||
Available on [Bower](http://bower.io) as **fetch-polyfill**. | ||
```sh | ||
$ bower install fetch-polyfill | ||
$ npm install fetch-ie8 --save | ||
``` | ||
@@ -27,11 +25,5 @@ | ||
```sh | ||
$ bower install es6-promise | ||
$ npm install es6-promise | ||
``` | ||
This can also be installed with `npm`. | ||
```sh | ||
$ npm install fetch-polyfill --save | ||
``` | ||
(For a node.js implementation, try [node-fetch](https://github.com/bitinn/node-fetch)) | ||
@@ -38,0 +30,0 @@ |
17050
351
161