#ipcRenderer is not working

5 messages · Page 1 of 1 (latest)

dusk cove
#

Here is the code, ipcRenderer is not sending data to main.js ipcMain:
<script>
const electron = require("electron")
const {ipcRenderer,sendIpcMessage} = window.electron

let sendBtn = document.querySelector("#sendBtn");
sendBtn.addEventListener('click',()=>{
  
  ipc.ipcRenderer.send("key","Miray Gangway app")
  
})

</script>

alpine star
#

not really a TS question
so this might not the best place to ask those kinds of things
I'd recommend you to ask on Electron's Discord server if there is one

#

make sure to check Electron's doc
since this is something quite basic, I'm pretty sure this is well documented on their website

dusk cove
#

@alpine star yeah well, thank you a lot

alpine star
#

!resolved