But, what if we only to do it on its initiation? Isn't there any simpler way to do it?
Yes, there it is.
I can't find it in its documentation, but I found it accidentally.
Actually, we can pass any data on BrowserWindow creation process.
In my case, I need to pass an URL to be loaded on the webview. So, here's mine :
My conclusion, even ipcRenderer is good for communication between Main and Rendered process, but if it's only on window initiation, we can do pass it on BrowserWindow creation. It'll be simpler and more effective in my opinion.
If you have a more effective way, comment this post.
Nothing is perfect, right?
No comments:
Post a Comment