Browse Source

Add fetch polyfill

Artur Paikin 9 years ago
parent
commit
e14b8cdd12
2 changed files with 3 additions and 1 deletions
  1. 1 0
      package.json
  2. 2 1
      src/plugins/GoogleDrive.js

+ 1 - 0
package.json

@@ -86,6 +86,7 @@
   "dependencies": {
     "drag-drop": "2.11.0",
     "tus-js-client": "1.1.3",
+    "whatwg-fetch": "^1.0.0",
     "yo-yo": "1.1.1"
   }
 }

+ 2 - 1
src/plugins/GoogleDrive.js

@@ -1,6 +1,7 @@
-import yo from 'yo-yo'
 import Utils from '../core/Utils'
 import Plugin from './Plugin'
+import 'whatwg-fetch'
+import yo from 'yo-yo'
 
 export default class Google extends Plugin {
   constructor (core, opts) {