So, I am pretty new to Electron and wanted to build a desktop application. But I have been running into issues, particularly in getting the renderer and main processes to communicate. I am aware of the IPC and remote concepts and this about me not being able to use them in the first place. I have tried to sur…
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…
How to save MediaRecorder Web API output to disk using a stream
I am experimenting with the MediaStream Recording API within Electron (therefore Node.js) and wish to handle the output as a stream. Handling as a stream would allow me to process the MediaRecorder output before saving to disk – I could encrypt it, for example. For my specific use case I am just concern…
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…
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/amcha…
Why is my Angular 8 app not properly packaging my app using Electron Packager?
I have been trying to export my Angular 8 app to a desktop app using Electron. I figured out how to run it with Electron, but when I decide to use the electron packager I run into an error. The error I get has to do with the ‘app-root-path’ not being found. I am using a main.ts and turning it
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…
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 pre…
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?…
Electron + xmpp.js: How I can Debug SSL Self-signed error messages?
I am using a combination of electron.js and xmpp.js in order to make my own client. My main project is consisted of these 2 files: Boostrapping electron on: index.js: And handling it with this file xmpp.js: Also my ui is consisted by index.html: With the following renderer: But my problem is that when I fired…