Skip to content

Commit 274224d

Browse files
committed
chore: increate timeout vue detect
1 parent 48dd0f8 commit 274224d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/content.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ browser.runtime.onMessage.addListener(handleMessage)
3333
function detectVue (win) {
3434
setTimeout(() => {
3535
let hasVue = Boolean(window.Vue || window.$nuxt)
36-
37-
if (hasVue === false) {
36+
if (!hasVue) {
3837
const all = document.querySelectorAll('*')
3938
let el
4039
for (let i = 0; i < all.length; i++) {
@@ -53,7 +52,7 @@ function detectVue (win) {
5352
domain: document.domain,
5453
hasVue
5554
})
56-
}, 100)
55+
}, 200)
5756
}
5857

5958
function installScript (fn) {

0 commit comments

Comments
 (0)