aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-06-11 18:49:39 +0200
committerlain <lain@soykaf.club>2020-06-11 18:49:39 +0200
commit0c364862991907ecd3073503af6b389c305fd53e (patch)
treed70004e233ff59fe2c12322489bc852f07eb620b
parent178ff1672d60320a5fbb8c11133eaee4a14c3781 (diff)
API: Remove fetch polyfill
All browser except IE have supported this for longer than Pleroma even exists.
-rw-r--r--package.json3
-rw-r--r--src/services/api/api.service.js1
2 files changed, 1 insertions, 3 deletions
diff --git a/package.json b/package.json
index c131d21a..c0665f6e 100644
--- a/package.json
+++ b/package.json
@@ -32,8 +32,7 @@
"vue-router": "^3.0.1",
"vue-template-compiler": "^2.6.11",
"vuelidate": "^0.7.4",
- "vuex": "^3.0.1",
- "whatwg-fetch": "^2.0.3"
+ "vuex": "^3.0.1"
},
"devDependencies": {
"karma-mocha-reporter": "^2.2.1",
diff --git a/src/services/api/api.service.js b/src/services/api/api.service.js
index b3082bc5..dfffc291 100644
--- a/src/services/api/api.service.js
+++ b/src/services/api/api.service.js
@@ -1,6 +1,5 @@
import { each, map, concat, last, get } from 'lodash'
import { parseStatus, parseUser, parseNotification, parseAttachment } from '../entity_normalizer/entity_normalizer.service.js'
-import 'whatwg-fetch'
import { RegistrationError, StatusCodeError } from '../errors/errors'
/* eslint-env browser */