hxelectron
hxelectron copied to clipboard
Cannot require "screen" module before app is ready
Using electron.Screen throws following error at runtime:
Error: Cannot require "screen" module before app is ready
But how can we prevent loading the screen module before the App.ready event ?
I guess we have to break the pattern and add some __init__
magic?
See: electron/electron#5897
Patched by adding @:native("require(\"electron\").screen")
but still here