Posts by Fábio Almeida • 36 points
4 posts
-
0
votes1
answer140
viewsA: Electron - Browserwindow does not load pages with the directory other than root
Talk buddy! So try this: win.loadURL(`file://${__dirname}/ui/login.html`); The variable __dirname is a global Node.js variable that returns the current app directory. Anything but communicate, my…
-
1
votes1
answer78
viewsA: How do I detect the click at the angle and pass the information to Electron?
You will need to use the Electron ipcRenderer module. Regardless of the Javascript framework you are using the communication between the Chromiun browser and the Node in Electron is done by sending…
-
0
votes2
answers207
viewsA: Initial questions about the Electron framework
Here’s some of my experience and I hope it helps you: Electron is basically the view of a desktop application, so in the backend code, it can be Node.js (in this case would use Javascript) or an…
-
1
votes1
answer46
viewsA: I cannot set the page that will be opened by the win.loadfile(') function
I usually do it this way: const electron = require('electron'); const { app, BrowserWindow, Menu } = electron; let mainWindow; let commentWindow; app.on('ready', ()=> { mainWindow = new…
electronanswered Fábio Almeida 36