Skip to content

Commit

Permalink
fix(core): add polyfill for fetch
Browse files Browse the repository at this point in the history
add a polyfill for fetch to fix JS error in IE
  • Loading branch information
yogakurniawan committed Jul 13, 2020
1 parent 338d2fd commit 34f9f6a
Show file tree
Hide file tree
Showing 8 changed files with 1,150 additions and 14,462 deletions.
570 changes: 570 additions & 0 deletions dist/vue-tel-input-vuetify.esm.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/vue-tel-input-vuetify.min.js

Large diffs are not rendered by default.

570 changes: 570 additions & 0 deletions dist/vue-tel-input-vuetify.umd.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/utils.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import allCountries from './all-countries';
import 'whatwg-fetch';

export function getCountry() {
return fetch('https://ip2c.org/s')
Expand Down
5 changes: 5 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
],
"dependencies": {
"awesome-phonenumber": "^2.15.0",
"vuetify": "^2.2.11"
"vuetify": "^2.2.11",
"whatwg-fetch": "^3.2.0"
},
"devDependencies": {
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
Expand Down
1 change: 1 addition & 0 deletions src/lib/utils.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import allCountries from './all-countries';
import 'whatwg-fetch';

export function getCountry() {
return fetch('https://ip2c.org/s')
Expand Down
14,460 changes: 0 additions & 14,460 deletions yarn.lock

This file was deleted.

0 comments on commit 34f9f6a

Please sign in to comment.