#(Solved) WebContents not working outside of Main Window
21 messages · Page 1 of 1 (latest)
Then it appears I'm stuck, I need to pass $(url) to the main window
it's easy to fix
just use a let that you declare outside of the function
oh but you already have it ah ah
remove the const before MainWindow in Launch
you should configure your ESLint to prevent such mistake
The outcome is the same.
then maybe open-url is run before your window is created
Yes, this does appear to be the case.
setTimeout usually solves a lot of issues for me.
why don't you do it on the renderer?
ew
Hmm, did some testing again and changed some stuff.
This does work now.
I just need to make some changes if the app isn't open.
Yeah, I suck at coding sometimes where I use it.
hmm it's a bad habit
I only have one in my whole app and it's because of a bug with a library ¯_(ツ)_/¯
lol
(Solved) WebContents not working outside of Main Window