Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save 422404/fd42cde31e89e2e29c76fdc5e415fb2d to your computer and use it in GitHub Desktop.
Save 422404/fd42cde31e89e2e29c76fdc5e415fb2d to your computer and use it in GitHub Desktop.
Electron BrowserWindow hookWindowMessage callback signature

Doc of the function : BrowserWindow's doc

After reading the doc a question remain: "WTF are the callback parameters !?" To answer the question we need to dig into Electron source code and we found that: Native call to callback function

hell yeah the function signature is :

hookWindowMessage(Buffer, Buffer)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment