All Questions
884
questions
0
votes
1
answer
171
views
Electron js, How to pass variable from main.js to html template?
I am a beginner to javascript & electron js. Im creating a todo list manager. Im trying to pass this list of titles retrieved from sqlite todos.db, and populate it in a selection menu. I am not ...
0
votes
0
answers
42
views
onclick function is not calling the popup form and there is no error
iam creating a small electron desktop popup form. So whenever running the program the initial logo is appearing in the desktop and when logo is clicked then onclick function will deliver the popup ...
1
vote
0
answers
143
views
ENOENT error when building Electron app for macOS: HTML template not found in build destination
This is a problem when building Electron apps.
When I develop a local app in Electron and build it, the HTML that serves as the template is not found at the build destination.
ideal state
Moving src/...
0
votes
1
answer
125
views
ElectronJS: How can I change the Electron homepage option when right-clicking the app's icon on the taskbar?
I'm creating an app with Electron. The app is works fine, but when I right-click[1] the app's icon on the taskbar; it shows an Electron option to open the Electron homepage[2].
[1]
[2]
So how can I ...
0
votes
1
answer
44
views
Javascript doesn't pass require statement in Electron
I have Electron app and need to execute shell command. But when I call the gen_screenshot.js inside HTML, the execution stops at const util = require('util'); line and the document.getElementById('...
0
votes
1
answer
430
views
Electron Leaves 1px Border Around titleBarOverlay
I'm very new to Electron and Node.js so forgive any misuse of the terminology.
I'm working on a Windows 10 application. I'm trying to gain the ability to customize the title bar area of my app (along ...
1
vote
0
answers
32
views
Custom Close, Maximize and Maximize buttons doesn´t work after build in MacOS
I have created custom header buttons for Minimize and close window that work fine when runing local but after creating build and install on MacOS, buttons stop working.
Renderer.html
<div class=&...
1
vote
0
answers
129
views
Electron - How to keep consistent contents size?
There is a problem with the window contents. In the index.html file, everything appears correctly in terms of size. However, when clicking on the "Click here" link to navigate to register....
1
vote
0
answers
205
views
how to find out the directory path of the frontend in Java Script
I have made an offline app with Electron. I already use window.showDirectoryPicker() but it just returns:
{
kind: 'directory',
name: 'New Folder'
}
With the code below, after I select a folder ...
2
votes
1
answer
60
views
How do I list my google events in a list using electron
I am working on a simple electron app that displays my google agenda - for this i use the node.js quickstart guide from google and tried to make a gui with electron/HTML. Now i get my data. I can ...
2
votes
1
answer
106
views
IpcMain communication issue
I'm trying to change the src="" of a webview. My program are two html pages, in the page1 I have an Input that when you press enter or a button, go to next page (page2). So in Page2 I put a ...
2
votes
0
answers
1k
views
How to fix the electron app window size in different display resolution
My laptop resolution: 1920 x 1080
1st monitor: 3840 x 1260
2nd monitor: 2560 x 1440
I created an login app in electron. I set the size for the app
In index.html
body {
width: 453px;
height: 518px;
...
-1
votes
1
answer
337
views
How to see os.hostname() module from nodejs on html in a electron app?
this is my first post, so im sorry for anything.
I´m struggling trying to show the os.hostname() module from nodejs in a html page in a electron app, i get the hostname in the terminal, but i can´t ...
-1
votes
1
answer
55
views
Height not changing in a div with CSS
when i try to change my div's height it doesn't move when i input the height. I want it to touch the top of the window and it isn't here is the code.
CSS
.shop {
position: absolute;
width: 200px;...
0
votes
1
answer
170
views
How can I send a variable from an Electron html file to a javascript file?
Im trying to get a number input from a form on the html document, and then send it to the javascript document and console.log it. Even while trying to debug and trying multiple versions it still wont ...