Skip to content

Commit

Permalink
fix(IE11): replace startsWith to be IE11 compatible (#442)
Browse files Browse the repository at this point in the history
* fix(IE11): replace `startsWith` to be ie11 compatible

* check for `.`

* Update src/install.ts

Co-authored-by: Jacek Karczmarczyk <jkarczm@gmail.com>

Co-authored-by: Jacek Karczmarczyk <jkarczm@gmail.com>
  • Loading branch information
pikax and jacekkarczmarczyk authored Jul 18, 2020
1 parent b8696be commit b31c74a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function install(Vue: VueConstructor) {
}

if (__DEV__) {
if (!Vue.version.startsWith('2.')) {
if (Vue.version[0] !== '2' || Vue.version[1] !== '.') {
assert(false, `only works with Vue 2, v${Vue.version} found.`)
}
}
Expand Down

0 comments on commit b31c74a

Please sign in to comment.