How can I detect if, for example, a browser is currently open? I need this in my electron-application. ty 🙂 I’ve found nothing like this online. I’ve only found how I can check which window is open from the windows I have in my own application, but I need to know, what else is opened. It should be something like
Tag: electron
Electron window reloads when saved file is overwriten / replaced
So, I have the save function written and it works exactly as intended the first time I save a file. However, if I try to overwrite the file by saving it again, the file saves fine, but the window reloads clearing all the data that’s been entered. I can just load the saved file and continue editing, but that will
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
Different Browser Window should have different menu option in electron js
I need the 2 browser Window one is main Window and other one is child window i want to set the child Window – menu that menu should not reflect on the main window . Answer I’m not exactly sure what your asking but from what I can tell you want to set a menuBar on the main window and
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
Stream response to file using Fetch API and fs.createWriteStream
I’m creating an Electron application and I want to stream an image to a file (so basically download it). I want to use the native Fetch API because the request module would be a big overhead. But there is no pipe method on the response, so I can’t do something like So how can I combine fetch and fs.createWriteStream? Answer
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