All Questions
215
questions
-1
votes
0
answers
44
views
No icon is displayed
The following problem needs to be solved: when you drag shortcuts to the container, they are duplicated and their image is not displayed.
Below I provide the main code of node js electron and renderer....
1
vote
1
answer
44
views
How to use context isolation ture with node integration false, In frontend without using Routes instead Js File for load the context body?
I can't use Electron Forge, so in order avoid duplicating header in HTML files, I want the base of the content load using JS function, within the page also I need to do the execution as well
HTML ...
0
votes
2
answers
52
views
How to make user data persistent in local storage in electron-app?
I'm building a tasks-to-do application using electron. As I'm new using it, I have found a lot of problems to make the tasks already uploaded persistent in the application.
I'm creating the tasks ...
0
votes
2
answers
39
views
can't change height of webview element
I am creating a desktop web browser (target platform is Windows) using electron. I am using a <webview> element to display the contents of a target URL. I am unable to change its height, despite ...
1
vote
1
answer
101
views
Why does my 'includes' statement require the entire string?
I am trying to use an 'if includes' statement within my Node JS project to filter the results pulled from a .txt file. The idea is that the serial number a user inputs correlates to specific models ...
0
votes
1
answer
39
views
Unable to get cameras list in Electron
I'm making an app and I want to get a list of all connected cameras to my pc in a select tag and when I choose one of these I want to open live stream of that camera on screen. I tried to many things ...
0
votes
0
answers
45
views
ELECTRON ERROR: shell_ipc_client.cc:139:Connect Can't connect to socket
Im making an app with Electron, I have an input file tag in html
<input type="file" class="visually-hidden" id="upload-input" accept=".jpg, .jpeg, .png" ...
0
votes
1
answer
114
views
How come I can't load system information from a node.js file into my electron html page?
I am working on a project which is a client mod for a popular crypto miner. I got permission from the owners and everything. I am having an issue with loading system information from my node,js script ...
0
votes
2
answers
217
views
Can't listen to 'ESC' in fullscreen
I'm making a video player in an Electron/React app.
I want to exit fullscreen when the user presses ESC, but it seems that the ESC key is not triggering any event.
// Player.js
const Player = (props) =...
2
votes
1
answer
73
views
electron.js - BrowserWindow viewport size shrinks by 1px when it is resized
I have a frameless electron.js window here (main.js):
const createWindow = () => {
const win = new BrowserWindow({
width: 500,
height: 400,
useContentSize: true,
frame: false,
})...
0
votes
2
answers
157
views
querySelector or addEventListener is not working with electron in html
I've started a desktop project with electron. But my button is not working, no any error. Here is the HTML code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset=&...
-1
votes
1
answer
455
views
Uncaught (in promise) Error: Cannot read properties of undefined (reading 'launch')
I am currently learning electron.js by building a simple application that scrapes data from a website. But there is this obnoxious and exasperating error that i am facing.
Folder structure of my ...
0
votes
1
answer
186
views
Automatically launch a localhost to open an offline HTML file?
In my project folder, I have a "project.html" and a "project.JS" file.
I do not want to let the user launch the program by opening the "project.html" file. Instead of ...
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 ...
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/...