Created
July 16, 2020 04:28
-
-
Save hasanuzzamanbe/4ff4090a80ce0570a3d6550c4f589a90 to your computer and use it in GitHub Desktop.
This is how vue devtool detect vue js. Just paste this snippet on the console.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const allDom = document.querySelectorAll('*') | |
let el | |
for (let i = 0; i < all.length; i++) { | |
if (allDom[i].__vue__) { | |
el = allDom[i] | |
console.log(el, "This is the vue element") | |
break | |
} | |
} | |
if (el) { | |
console.log('Vue exists!') | |
} else { | |
console.log('Vue does not exist !') | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment