Closed kaatt closed 4 years ago
@kaatt Good catch. I'll have a look.
@sindresorhus Would you like this to be exclusively handled by callFocusedRenderer()
or by callRenderer()
in general?
In other words: Is the error that no window is focused or that callRenderer()
is called without a BrowserWindow
?
Handle both cases?
Handle both cases?
👍
The following error is thrown when no windows are focused and
ipc.callFocusedRenderer
is called:Took me a bit of time to debug, should probably help another person googling it. Would be good to handle this and throw a more descriptive error message.
cc #27 @ulken