Skip to content
Advertisement

Tag: electron

Electron window corners without radius?

I have an electron window with these properties: When I start it, everything works fine. But because my titlebar only shows on hover, I have an ugly edge on top and rounded edges on the bottom. I now want all of my corners to have a 0px radius. According to other resources on the Internet, it should automatically be 0px

Unable to run Electron Quick Start in WSL

Hi I’m running Ubuntu 16.04.3 LTS on Windows Subsystem Linux. I’m trying to run the Quick Start first app as listed in this section here https://electronjs.org/docs/tutorial/first-app however, I keep getting the same error no matter if I clone the repository, write it myself, or delete and reinstall the Electron module. For reference I’m running Node: 9.11.1 NPM: 5.8.0 Answer Electron

How to import ipcRenderer in react?

I’ve tried to import ipcRenderer in react app but I get this error message : require is not defined Answer You need to use Otherwise it will try to import it from Webpack or whatever module bundler you use. You can checkout this thread for a better explanation: https://github.com/electron/electron/issues/7300

Electron print without dialog (silent print)

I just need to use electron js to build my desktop app, I use simple BrowserWindow to load my website in the application. I added some functionality to reload the window when the connection issues so when the internet turn-on again the app will reload the page so it will not show “Page not found”. In my web page it

Electron – How to add external files?

I have an Electron app. I try to make the app open an .exe file. I created a directory in the root folder named lib and placed the .exe file there. In development, I have no problem opening the file by using __dirname + ‘/lib/file.exe, but when I package the app (using yarn dist), it does not open the exe

Only hide the window when closing it [Electron]

I try to hide my main window so that I hasn’t to load again later. I got the following code: So that’s not working for me, when I close the window I get this error message: Can somebody help me? Line 37 is the line with win.hide() Thank you! Answer Use the close event instead of the closed event. When

Advertisement