Category "electron"

Replacing JS require('...') with ESM imports

After updating node-fetch to v3, the following JavaScript error message appears when trying to launch my Electron app: Uncaught Exception: Error [ERR_REQUIRE_ES

Electron + Vite project cannot show png resource

I am using Vite + Electron to make a desktop app demo. But it cannot load png resource, but js, css resource is fine. So it worked like this png canoot be loade

use the same key in both render and main process electron?

I am recently learning electron I have encountered a problem that I want to listen ESC in both process, In Main process, menu.append(new MenuItem({ label: "

Agora screen sharing in electron with react, Gives permission denied

I am building an electron-react app with Agora for calls. I am trying to implement the screen sharing feature. As described in the following documentation I tri

How to integrate hubspot chat on electron app

I'm trying to integrate hubspot chat on an electron app. For example: <!DOCTYPE html> <html lang="en"> <head> <meta charset="ut

What's the codes such as [?2004l means in SSH result?

Got such result when using ssh2 in electron: [?2004l [?1h= [1;24r[m[m[0m[H[J[2;1H[1m~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~[0m[24;63H0,0-1[9CAll[6;32HVIM -

WebdriverIO: automating native upload window that opens on button click in electron

I am trying to automate file upload in Electron, but Native upload is used that is open when the upload button is clicked, so there is no input element to set t

Safe electron app that makes requests to another server web application

I want to create an electron app that supports sns features(upload videos, photos, basically share some info (nothing personal). I know that electron only has a

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