Skip to content
Advertisement

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 available on Linux as of Electron 9. PR #18306 attempts

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 yet I can’t find anything

Electron+nuxt+amCharts 4: Unexpected token export

I want to code a desktop application using Electron, nuxt.js and am4charts. When importing the am4charts core with import * as am4core from ‘@amcharts/amcharts4/core’ the app returns an error: My setup: Electron-nuxt boilerplate (https://github.com/michalzaq12/electron-nuxt) “@amcharts/amcharts4”: “^4.7.1” I already tried to transpile amCharts in nuxt.config.js using but without success. How can I fix this issue? Answer I found it could be

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 another application then back on the app fixes the problem.

I want a method in electron module to hide it in taskbar

I want someone to help me out in this problem. I want to know a method which hides my application from the taskbar. I want to make an app that works in the background. I am new to the electron, therefore I hadn’t known anything about it. So, I hadn’t actually tried anything out. Answer you can prevent it before

DevTools was disconnected from the page, electron

Guys i need to open some web application into my electron app, i used <webview> tag but [official docs][1] of electron offers to use BrowserView. so i used BrowserView, BUT i got DevTools was disconnected from the page error! simply i need DevTools for my BrowserView not my entire app. what should i do? myCode: just main.js Answer openDevTools is

Advertisement