Skip to main content

All Questions

Tagged with
0 votes
1 answer
36 views

How can I return data from preloaded Electron script?

I have built a function in preload.js that gets a JSON file sent from main.js. renderer.js loads it fine, but I can't seem to give the data to another variable outside of the arrow function. main.js ...
liminalFrog's user avatar
0 votes
1 answer
39 views

Electron IPC Main webContents not sending data to Renderer

Using the docs from Electron's website, I cannot send simple data using mainWindow.webContents.send('send-data-channel', data). I'm attempting to send a JSON file to the renderer using Node's fs ...
liminalFrog's user avatar
0 votes
0 answers
31 views

Invoking function in Julia from Javascript using Electron.jl

I am trying to build a simple Electron app using Julia as my back-end language and HTML/CSS/Javascript as front-end by means of the Electron.jl package. Essentially, I have written a CVM structure on ...
Niels van den Heuvel's user avatar
0 votes
0 answers
14 views

IPC Dialog in ElectronJS showing up behind main window after activated a second time

I'm using Electron and when I call the IPC dialog for the first time it shows up on top which is great but when I launch it any time after that it will now show up behind the main window which is not ...
dozdezdaz's user avatar
0 votes
1 answer
78 views

signal from Main to Renderer not reaching contextBridge?

When the app is launched, I am trying to send some data from main.js to renderer.js so that renderer.js can begin rendering some elements. I have no idea what is going wrong, but it seems ...
oldboy's user avatar
  • 5,830
0 votes
0 answers
138 views

Rewriting A Text File's Content In An Electron App

I want to create a text editor, and so far I was able to add file saving and file opening functionality. I want the text content of the opened file changed according to the textarea in my code, so ...
Sisifos496's user avatar
0 votes
0 answers
102 views

How to activate the button in popup window in Electron Js?

I have an Electron JS project. There are 2 buttons, one of them in index.html (for the main page), and the other is in popup.html (for the popup window). There is no problem with buttons in index.html....
sunShine's user avatar
  • 145
1 vote
1 answer
65 views

How can I send some data like auth token from a web app to an electron thin client. I am using custom url protocols to open the thin client

How does apps like teams and zoom have a pop when we click on a meeting link in the browser that do we want to continue in the browser or open in app, if we click open in app then it launches the app ...
Swapnil Sinha's user avatar
0 votes
1 answer
129 views

My electron app is logging two responses while there is only one

i need someone who knows electron, am practicing my knowledge at electron, Am making a kind of basic hotel system, the renderer.js haves this showReservDetails() and takes the reservation id, and i ...
Omar Alkhateeb's user avatar
0 votes
2 answers
396 views

Issue with ipcMain.handle() not returning any value to ipcRenderer.invoke()

So, I struggled with this problem for 2 days, looking in the API documentation of Electron.js and various sites and you guys are my last hope: Here are the 3 files related to the issue: main.ts (not ...
Dan149's user avatar
  • 46
0 votes
1 answer
220 views

Send response to ipcRenderer from ipcMain

I am currently building an Electron app where I need to store something in the app. For that, I am using electron-store which works perfectly. Now I need to initialize an ipcMain.on("get-license-...
elegance007's user avatar
0 votes
2 answers
208 views

Why are my values always 'undefined' when sending data to render from main in ElectronJS?

So I'm new to electron, still getting a hang of the IPC communication. I'm able to send and receive messages totally fine over IPC (meaning I can confirm in both directions the send and receive ...
ColtTheNark's user avatar
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 ...
Jayendra Kamesh's user avatar
0 votes
0 answers
411 views

Electron.js has broken encoding and UTF-8 not working

Electron.js coding UTF-8 has broken The ipcRenderer receives the data correctly. But that's when it sends already scary characters to the server side. Also, in sequelize, when making requests, it is ...
КИТ KIT's user avatar
0 votes
1 answer
640 views

Electron / NodeJS: How to send async messages from IpcMain to IpcRenderer

As the title states, I would like to know how I can send messages originating from a python process can be send intermittently to my renderer process. I have tried quite a few techniques, but I seem ...
pieterhop's user avatar

15 30 50 per page
1
2 3 4 5
8