Created
March 1, 2022 16:03
-
-
Save geongeorge/66a39724dd17ca1f6a67ecf8e770a7f8 to your computer and use it in GitHub Desktop.
Inject vConsole to view console on mobile
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 script = document.createElement('script') | |
script.onload = function () { | |
console.log('Loaded vConsole') | |
var vConsole = new window.VConsole() | |
} | |
script.src = 'https://unpkg.com/vconsole@latest/dist/vconsole.min.js' | |
console.log('Loading vConsole') | |
document.head.appendChild(script) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment