Remove babel-polyfill dependency

This saves 85kb in the production build.
This commit is contained in:
Matt Isenhower
2017-08-03 15:58:21 -07:00
parent 86a5021769
commit bfc6aaf67b
2 changed files with 2 additions and 4 deletions

View File

@@ -78,9 +78,8 @@ export default {
clearInterval(this.timer);
},
methods: {
async updateData() {
let schedules = await axios.get('/data/schedules.json');
this.splatnet.schedules = schedules.data;
updateData() {
axios.get('/data/schedules.json').then(response => this.splatnet.schedules = response.data);
},
updateNow() {
this.now = Math.trunc((new Date).getTime() / 1000);

View File

@@ -1,4 +1,3 @@
import 'babel-polyfill';
import Vue from 'vue';
import App from './components/App.vue';