Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const ipcCallback = (event, data) => {
if (typeof data === 'string') {
data = JSON.parse(data, bufferJson.reviver)
}
this.push(data)
}
ipcMain.on(this.channel, ipcCallback)
const ipcCallback = (event, data) => {
if (typeof data === 'string') {
data = JSON.parse(data, bufferJson.reviver)
}
this.push(data)
}
ipcRenderer.on(this.channel, ipcCallback)