commit: b1d9cbaebdbdd27e521989d9eaef0f6a49426280
parent: 9c5f001fd2bfd8a2d06e36f6dd1b7ac0c41e5cd2
Author: Roger Braun <roger@rogerbraun.net>
Date: Mon, 31 Jul 2017 16:35:07 +0200
Add fetch polyfill.
Diffstat:
3 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/package.json b/package.json
@@ -27,7 +27,8 @@
"vue-router": "^2.5.3",
"vue-template-compiler": "^2.3.4",
"vue-timeago": "^3.1.2",
- "vuex": "^2.3.1"
+ "vuex": "^2.3.1",
+ "whatwg-fetch": "^2.0.3"
},
"devDependencies": {
"autoprefixer": "^6.4.0",
diff --git a/src/services/api/api.service.js b/src/services/api/api.service.js
@@ -24,6 +24,7 @@ const QVITTER_USER_TIMELINE_URL = '/api/qvitter/statuses/user_timeline.json'
// const USER_URL = '/api/users/show.json'
import { each, map } from 'lodash'
+import 'whatwg-fetch'
const oldfetch = window.fetch
diff --git a/yarn.lock b/yarn.lock
@@ -5816,6 +5816,10 @@ webpack@^1.13.2:
watchpack "^0.2.1"
webpack-core "~0.6.9"
+whatwg-fetch@^2.0.3:
+ version "2.0.3"
+ resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-2.0.3.tgz#9c84ec2dcf68187ff00bc64e1274b442176e1c84"
+
whet.extend@~0.9.9:
version "0.9.9"
resolved "https://registry.yarnpkg.com/whet.extend/-/whet.extend-0.9.9.tgz#f877d5bf648c97e5aa542fadc16d6a259b9c11a1"