Last active
January 13, 2022 08:20
-
-
Save marcelowa/d3b9088d9d47398bac921ac174d8255b to your computer and use it in GitHub Desktop.
html console
This file contains hidden or 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
console.log('hello!!!') | |
window.dividePromise = () => ({then: () => {}}); | |
window.divideCallback = () => {}; | |
const origConsoleLog = console.log; | |
const origConsoleError = console.error; | |
window.console.log = (input) => { | |
origConsoleLog(input); | |
document.write('<div>Result: '+ input + "</div>"); | |
}; | |
window.console.error = (input) => { | |
origConsoleError('<div>Error: '+ input + "</div>"); | |
document.write(input); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment