Skip to content

Tag: electron

Keep window ratio in electronjs

How can I keep the window width and height aspect ratio in electron? For example, a square shape that can be resized by the user. Answer There’s a win.setAspectRatio API for the BrowserWindow. Note that it’s currently only available on macOS on the latest stable (Electron 8.2.1), but should be ava…

Electron non-context-aware native module in renderer

I have updated electron to latest in my project because there were some printer issues with that now I am facing this problem which is when I am importing packages to frontend it’s throwing this error yet this works without any problems yet this bothers me so much I have searched and found this #1839 ye…

Can’t edit input text field after window.alert()

I’ve got this Electron app (using NodeJS, Bootstrap, AngularJS) with some text input fields that can be edited. I have a button that triggers a window.alert() After it has been triggered, the text input fields are no longer editable. Clicking on other elements of the app changes nothing. Clicking on ano…