Fix: IE11 has no String.startsWith

This commit is contained in:
Christoph Wiechert
2017-11-28 16:37:26 +01:00
parent 139ec914ba
commit 7552771e69
2 changed files with 14 additions and 0 deletions

View File

@@ -1,3 +1,10 @@
if(!String.prototype.startsWith) {
String.prototype.startsWith = function(searchString, position) {
position = position || 0;
return this.indexOf(searchString, position) === position;
};
}
import Vue from 'vue';
import Download from './Download.vue';
import Icon from 'vue-awesome/components/Icon.vue'

View File

@@ -1,3 +1,10 @@
if(!String.prototype.startsWith) {
String.prototype.startsWith = function(searchString, position) {
position = position || 0;
return this.indexOf(searchString, position) === position;
};
}
import Vue from 'vue';
import Upload from './Upload.vue';
import store from './Upload/store.js';