in renderer:
function deleteCategory(txtCategory) {
console.log("render:" + txtCategory); // has data
window.electronAPI.deleteCategory(txtCategory);
}
``` in preload: ```js
contextBridge.exposeInMainWorld('electronAPI', {
deleteCategory: (txtCategory) => ipcRenderer.send('deleteCategory'),``` in main:```js
ipcMain.on('deleteCategory', deleteCategory)
``` and ```js
function deleteCategory(event, txtCategory) {
console.log("main");
console.log(event); // has event
console.log("main"+ txtCategory); // category is UNDEFINED``` Why is it undefined?