diff --git a/shells/chrome/src/detector.js b/shells/chrome/src/detector.js index 0319243ab..181f3229d 100644 --- a/shells/chrome/src/detector.js +++ b/shells/chrome/src/detector.js @@ -9,7 +9,7 @@ function detect (win) { const all = document.querySelectorAll('*') const el = [].find.call(all, e => e.__vue__) if (el) { - let Vue = el.__vue__.constructor + let Vue = Object.getPrototypeOf(el.__vue__).constructor while (Vue.super) { Vue = Vue.super }