Skip to content

Tag: electron

Vue Devtools Not Loading With Vue Electron Builder

I’m creating an Electron / Vue application, and I cannot get the Vue Devtools to load in the Electron app window. This is my first time using Electron with Vue, and I’m not sure if there’s a dependency issue that I’m not aware of. I came across this Github issue, but my versions of Ele…

using npm module in renderer process of electron

I have installed Buffer module via npm install Buffer on my machine and I want to simply import it to the renderer process to use the Buffer When I use this: it says require is undefined. None of the solutions on Stack Overflow are working. Answer Make sure you have nodeIntegration in your BrowserWindow setti…

CSS variable won’t get set | Electron

I’m currently having an issue with CSS variables not being set, I’m using electron and im trying to set it like this: And i’ve my variables defined like so: The color is printed, but the variable is not being set. I’ve seen ‘BlinkFeatures’ and i’ve enabled those too, …

Electron, contextIsolation and contextBridge

I recently had to revamp an old Electron app. I found out that it had contextIsolation set to false, so I went ahead and set it to true (and btw set nodeIntegration to false). As expected, it broke the ipc communications So I used, as advised in many places, a preload script that enables some communications c…

Take desktop screenshot with Electron

I am using Electron to create a Windows application that creates a fullscreen transparent overlay window. The purpose of this overlay is to: take a screenshot of the entire screen (not the overlay itself which is transparent, but the screen ‘underneath’), process this image by sending the image as…

My app doesn’t close on button, electron.js

I have this electron.js app and I would like the application to close when I click on the text with class closer. Here is my code: HTML main.js initialization electron closer.js My problem is that clicking the button, doesn’t work. What should I do? Answer I think you can do it with a loop like this.