Created
October 1, 2019 10:04
-
-
Save ozrabal/46317f0abc136b9208fdaf4dda5a6083 to your computer and use it in GitHub Desktop.
electron log
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
function logEverywhere(s) { | |
console.log({s}) | |
if (Window && Window.webContents) { | |
Window.webContents.executeJavaScript(`console.log("${s.toString()}")`) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment