Skip to content

Instantly share code, notes, and snippets.

@ozrabal
Created October 1, 2019 10:04
Show Gist options
  • Save ozrabal/46317f0abc136b9208fdaf4dda5a6083 to your computer and use it in GitHub Desktop.
Save ozrabal/46317f0abc136b9208fdaf4dda5a6083 to your computer and use it in GitHub Desktop.
electron log
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