Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

143
Vistas
ipcRenderer.on() gets never called

app.js

app.whenReady().then(() => {
     const win = new BrowserWindow({
         width: 800,
         height: 600
     )}
     win.loadFile('index.html')
     
     win.on("resized", () => {
         console.log("Window resized")
         win.webContents.send("resize", "window resized")
     })
}

script.js

require('electron').ipcRenderer.on('resize', (event, message) => {
    alert("Received!")
})

of course I have included it in index.html <script type="text/javascript" src="script.js"></script>

Everything looks fine to me but when I run the application and resize the window I see in the console "Window resized" but the message is never received by ipcRenderer.on() function, what am I missing?

I'm running on MacBook m1.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda