Fix: IE11 has no String.startsWith
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user