Skip to content

Commit b31c74a

Browse files
fix(IE11): replace startsWith to be IE11 compatible (#442)
* fix(IE11): replace `startsWith` to be ie11 compatible * check for `.` * Update src/install.ts Co-authored-by: Jacek Karczmarczyk <[email protected]> Co-authored-by: Jacek Karczmarczyk <[email protected]>
1 parent b8696be commit b31c74a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/install.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export function install(Vue: VueConstructor) {
5555
}
5656

5757
if (__DEV__) {
58-
if (!Vue.version.startsWith('2.')) {
58+
if (Vue.version[0] !== '2' || Vue.version[1] !== '.') {
5959
assert(false, `only works with Vue 2, v${Vue.version} found.`)
6060
}
6161
}

0 commit comments

Comments
 (0)