Skip to content
Advertisement

Tag: electron-forge

Electron “ready-to-show” event not working as expected

Here is a block of code from my application Codey. src/main.py src/docs/renderer.js When darkMode = true, toggleDarkMode is never run. My application has two different windows – an editor and a docs window. For both windows, on the “ready-to-show” event, “dark-mode:toggle” is sent to the renderer process. However, the docs window fails to run the toggleDarkMode function whilst it works

Advertisement