From b1d9cbaebdbdd27e521989d9eaef0f6a49426280 Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Mon, 31 Jul 2017 16:35:07 +0200 Subject: [PATCH] Add fetch polyfill. --- package.json | 3 ++- src/services/api/api.service.js | 1 + yarn.lock | 4 ++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index d04c3e22..63fd490d 100644 --- 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 index e848d076..9b51f19d 100644 --- 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 index b0c3e63e..965f6f31 100644 --- 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"