You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I checked an old issue that suggested to use target="electron-target" but its outdated. Also, the now-desktop app doesn't use electron in the renderer (e.g. for opening links in default browser).
The text was updated successfully, but these errors were encountered:
@Djiit Since nodeIntegration is disabled, we will not be able to use 'electron' package directly, However you can use any module of electron by exposing it in global.
This is how ipcRenderer is also exposed to renderer process.
Example -
Let's say you want to use remote.getCurrentWindow()
Hi,
When importing electron for the renderer :
I get this error :
Did I miss something in the config ?
I checked an old issue that suggested to use target="electron-target" but its outdated. Also, the now-desktop app doesn't use electron in the renderer (e.g. for opening links in default browser).
The text was updated successfully, but these errors were encountered: