All Questions
Tagged with electron javascript
6,349
questions
0
votes
0
answers
10
views
How do I check if the webview and the app are not focused
My app thinks it is not focused while the <webview> is focused.
It checks if the app and the webview's IsFocused function returns true
I'd like it to work,not do false positives!
I tried GPT3, ...
0
votes
0
answers
20
views
How to make all new tabs/windows in electron direct to new electron-tabs
I'm currently working on some JavaScript code for a project. My goal is to make Electron open all links that would normally result in "pop-ups" to open in new tabs under the electron-tabs ...
-4
votes
0
answers
49
views
Bug in finding image in electron with sqlite [closed]
So, my problem is that my app can't find my image, and on my sqlite database there's just a txt file that says undefined:
This function goes immidietely after entering the app
ipcMain.on('load-...
0
votes
2
answers
56
views
How do I gray elements based on class name?
I'm trying to grey the border elements smoothly with css smoothing and it does nothing and the elements are 1 pixel thick
code:
function greyBorder()
{
var elms
...
0
votes
0
answers
24
views
Creating a Logger for the electron application [closed]
I want to create a logger to handle all the logs inside the application. To offload logger tasks such as writing logs to the file, rotating the log files, and sending logs to different monitoring ...
0
votes
0
answers
19
views
Issue with OAuth Redirect in Electron App Using Nextron Framework in Production
to authenticate and interact with YouTube APIs. The app works perfectly in development mode, but I am facing an issue in production mode regarding the OAuth redirect URI.
In development mode, the ...
0
votes
0
answers
22
views
I am practice ipcRenderer but I can not see the result which i think would happen
I am a student and actually English is not my native language so there must be lots of grammer problem I'm so sorry.And just like what I wrote on title I'm learning how to use ipcRenderer but it didn'...
-1
votes
0
answers
19
views
How to get the device ID and device type in Electron.js with React.js and TypeScript?
I am working on an Electron.js application that uses React.js and TypeScript. I need to obtain the device ID and device type within my application. Here is a brief overview of my setup and what I've ...
-3
votes
1
answer
41
views
webContents not defined error. how to fix? [closed]
I am a beginner coder and not that good so please don't mind my code, I am trying to make an application in electron js that opens an image file and displays it in the app. and I am having to send a ...
-1
votes
0
answers
20
views
electron opens raw main file source code in my native browser
When I run my electronjs app (electron . or electron electron.js) instead of opening a electron tab it opens the electron.js file in my browser (opera) as if it were a text file
I figured out that the ...
0
votes
0
answers
18
views
Angular 14 and Electron js Outlook integration doesn't work after creadentials given
We have used
@azure/msal-angular
For outlook integration in our system.
let result = await this.msalService
.loginPopup({
scopes: [
'user.read',
'Mail....
-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....
0
votes
0
answers
29
views
Uncaught TypeError: Cannot read properties of undefined (reading 'send')
`Windows; MS Code; "Electron" 5.0.4, simple desktop text editing app
I get the following error after clicking the save button; the button is located on the "index.html" page in a &...
0
votes
0
answers
22
views
Load React or Angular Component In OpenFin
I am trying to get an OpenFin app to run using the Platform API: https://developers.openfin.co/of-docs/docs/platform-getting-started
I can get a 'platform' running, and x2 panels using the example in ...
-2
votes
0
answers
20
views
How to create electron app that will replace windows desktop
How can i develop an app, that can be used instead of default windows desktop, couldn't find any tutorials online, so I'm asking here
I only found some ways of using kodi, but I want exactly electron ...
0
votes
1
answer
63
views
How can i fix Electron problem: Error: ENOTDIR, not a directory?
I'm using an electron for the first time. I ran into a problem when building the application. I do everything according to the documentation, I use electron-forge. npm run make runs without problems, ...
0
votes
0
answers
13
views
Electron Forge resolving path to node module using absolute path rather than using relative path
I'm trying to create an app that include the get-windows npm package, but I cannot distribute my app because Electron Forge is using resolving the package to an absolute path rather than a relative ...
1
vote
2
answers
75
views
Is it possible to add an eventListener to a custom title bar used for dragging the window in a frameless window?
Added a custom title bar to a frameless window in order to make the window draggable. The title bar shows, but eventListener won't fire:
main.js:
const createWindow = () => {
const win = new ...
0
votes
0
answers
31
views
Uncaught TypeError: Failed to resolve module specifier "monaco-editor". Relative references must start with either "/", "./", or "../"
I'm getting started using a Monaco Editor for an Electron JS application. So far I'm able to get the file content on a user's directory no problem but when I try to append it to a Monaco Editor is ...
0
votes
0
answers
18
views
How to prevent system shutdown if an electron app is running
I want to send an api request when the user closes the app. I have managed to send an api request on that but on shutdown the request is not sent.
Is there any way in electron that we can prevent ...
0
votes
0
answers
16
views
Does electron have a way to get information about the printer, including sub-sheet information, paper quantity, etc
ipcMain.handle('getPrinterAsync', async (_, args) => {
return this.windowPrint.getWindow().webContents.getPrintersAsync();
})
Does electron have a way to get information about the printer, ...
-2
votes
0
answers
59
views
Error while running react - electron in browser - Uncaught ReferenceError: require is not defined
I am tryin to make a electron - react application and while running i am getting a error on the console of the browser.
Uncaught ReferenceError: require is not defined
at Object.events (bundle.js:...
-1
votes
0
answers
20
views
How can I require the electron module from within cordova's renderer process?
I created a plain cordova-electron application using this tutorial.
I am trying to access the ipcRenderer object of the electron module so I can receive events sent from the main process (cdv-electron-...
0
votes
0
answers
25
views
How to create a Windows installer with UAC prompt using electron-forge?
Is it possible for electron-forge to display a UAC prompt before installation? I looked at the Electron Forge documentation, and it doesn't have any configuration to allow a UAC prompt before ...
0
votes
0
answers
24
views
Passing headers with session.protocol.handle
When trying to pass a resolved url from inside a protocol handler, session.fetch does not pass any headers. Using request.headers does not work, as it is also empty
I have tried getting the headers ...
0
votes
1
answer
20
views
Unknown spawn error in electrong-react app
I am making an app in electron and react. The app was working fine until one day this random error popped.
Description of error
I tried deleting the node_modules folder and reinstalling it but it ...
0
votes
0
answers
31
views
Why can't Electron load the static file for Next.js?
The out/index.html load and related files (out/_next) generated by Next.js using the static build files of Electron and Next.js are not being loaded.
The actual project structure looks like this
The ...
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
...
0
votes
0
answers
40
views
I'm having an data loss issue using line Graphs in ApexCharts
ApexCharts seems to modify/remove some data, I'm not quite sure if this is a skill issue of mine, or something else.
I'm getting data from an API from my server, the APIs data is intact and seems to ...
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 ...