Browse Source

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

fix a capitalization problem

For a rookie, this little mistake took a long time to find out.
ZWJKFLC 1 year ago
parent
commit
4ab0a5ade4
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