Category "electron"

Delete the installer after installation

I'm trying to have the installer [NSIS] deleted after my electron app is installed on a device, so that the user needn't do so Is there a possible way to achiev

Upgraded to macOS Monterey 12.3.1 and `playwright + electron` stopped working - how do I fix it?

We launch our Electron-based app like so: test.beforeAll(async() => { electronApp = await _electron.launch({ args: [ path.join(__dirname

Typescript conditional return type based on props

In electron application I have a component that renders a button and sends a message to an arbitrary channel to the main process. The main process does some wor

How to check if electron app is running a portable build?

I build an electron app that will be distributed as both portable and installable version. I added electron-updater to get the installed version automatically u

Electron JS ReCaptcha Harvester

I need to make a recaptcha V2 harvester in Electron JS. I tried the following code but all I get it "ERROR for site owner: Invalid domain for site key". I think

Electron Amplify AppSync "Realtime disabled when in a server-side environment"

I'm using amplify appsync in my electron app and all works except for the realtime events which means my app doesn't get signalled when the data changes in the

How to use same enum in multiple files in Typescript without import

I've been struggling with this now longer than I should and surprisingly, the existing questions (and there are many) don't really help further. My goal is to d

Remove appData after uninstall Electron app

I want to remove the appData after my app was uninstalled. The deleteAppDataOnUninstall: true option was useful when i run the uninstaller.exe,but not work when

My electron app that I packaged is not opening (I suspect it's a problem in package.json)

I can't open my electron app that I packaged , it created the folder release builds but I am not able to open the exe file it created. I suspect the problem is

got wrong size of screen in electron and chrome

I want to get the real screen size to do sth in my electron app. const { app, BrowserWindow } = require('electron') let mainWindow = null app.whenReady().then

Electron-log with file transport is forcing app reload

I am using the electron-todo template and trying to create a log file that recovers the data in the event of a crash. The app reloads every time the log file is

How to communicate with 2 new Promise with each other

So I am trying to connect 2 new Promise with each other so I can send information to each other. So I want to use image.url which is made in the first promise b

ElectronJS: Window always-on-bottom (inverse of top-most / widget)

I am currently creating a system monitor application for which I would like it to work as a widget. Please see example of my application below: ElectronJS syste

Javascript doesn't run with both electron and canvas libraries installed

I'm trying to use electron and canvas in the same script, but it throws an error when I try. I've tried using canvas and electron separately with the same node

Writing to a JSON file from an electron web app

Using electron I have made an app that can generate 6 arrays that create a frame for an animation, these arrays are going to be interpreted by another program t

TypeError: Cannot read properties of undefined (reading 'webContents') Electron.JS

Im trying to make an event on keyPress (keyDown) (In electron) but i get this error. TypeError: Cannot read properties of undefined (reading 'webContents') He

'The "path" argument must be of type string. Received null' in electron-json-storage

I'm using eletron-json-storage like this: settings.js: const storage = require('electron-json-storage'); const defaultStoragePath = storage.getDefaultDataP

Using electron-builder, during the install of an app, is there a way to auto-create a folder in the user's "Documents" folder in Windows?

What am I trying to do? When installing an Electron application on a Windows machine, I would like it to also put a folder in a user's "Documents" area, for exa

Electron cache images and then read it when the image is used

When electron starts, the cache images is read, and then read it when the image is used. i can save images in main process. fetch(`${server_host_ip}${image}`)

Electron not starting properly due to SIGTRAP

I am getting into Electron to try to begin building desktop applications. I am running into this error: /home/me/dev/my-electron-app-2/node_modules/electron/dis