Browse Source

docs: fix a capitalization problem in messagePort tutorial (#39130)

fix a capitalization problem

For a rookie, this little mistake took a long time to find out.

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: ZWJKFLC <[email protected]>
trop[bot] 1 year ago
parent
commit
6930ecea68
1 changed files with 1 additions and 1 deletions
  1. 1 1
      docs/tutorial/message-ports.md

+ 1 - 1
docs/tutorial/message-ports.md

@@ -150,7 +150,7 @@ renderer.
 
 ```js title='renderer.js (Renderer Process)' @ts-nocheck
 // elsewhere in your code to send a message to the other renderers message handler
-window.electronMessagePort.postmessage('ping')
+window.electronMessagePort.postMessage('ping')
 ```
 
 ### Worker process