From b31c74ad6736c0eeeb893c39a2958ba82421967e Mon Sep 17 00:00:00 2001 From: Carlos Rodrigues Date: Sat, 18 Jul 2020 07:09:19 +0100 Subject: [PATCH] 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 Co-authored-by: Jacek Karczmarczyk --- src/install.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/install.ts b/src/install.ts index 9c00b3f7..95a31909 100644 --- a/src/install.ts +++ b/src/install.ts @@ -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.`) } }