docs: enable contextIsolation in fiddles (#39613)

This commit is contained in:
Milan Burda
2023-08-29 21:52:16 +02:00
committed by GitHub
parent 2e79f34c84
commit 9280b79112
61 changed files with 206 additions and 233 deletions

View File

@@ -1,5 +1,5 @@
const { contextBridge, ipcRenderer } = require('electron/renderer')
contextBridge.exposeInMainWorld('electronAPI', {
handleCounter: (callback) => ipcRenderer.on('update-counter', callback)
handleCounter: (callback) => ipcRenderer.on('update-counter', () => callback())
})