From 9ec13afeaff39767538f08102b69ddf03dcfc1fb Mon Sep 17 00:00:00 2001 From: David Sanders Date: Sun, 5 Feb 2023 21:40:16 -0800 Subject: [PATCH] docs: add missing ipcRenderer require to example code (#37134) --- docs/api/context-bridge.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/context-bridge.md b/docs/api/context-bridge.md index fa5ce0a54f26..738de98bb6a1 100644 --- a/docs/api/context-bridge.md +++ b/docs/api/context-bridge.md @@ -65,7 +65,7 @@ the API become immutable and updates on either side of the bridge do not result An example of a complex API is shown below: ```javascript -const { contextBridge } = require('electron') +const { contextBridge, ipcRenderer } = require('electron') contextBridge.exposeInMainWorld( 'electron',