All Questions
882
questions
249
votes
11
answers
243k
views
Electron require() is not defined
I'm creating an Electron app for my own purpose. My problem is when I'm using node functions inside my HTML page it throws an error of:
'require()' is not defined.
Is there any way to use Node ...
153
votes
5
answers
29k
views
What are the functional differences between NW.js, Brackets-Shell and Electron?
Now that TideSDK is effectively dead, I've been looking into alternative 'wrappers' to run HTML/CSS/JS applications as stand-alone desktop applications. The three viable options I have run across so ...
43
votes
4
answers
57k
views
Native looking UI components for Electron application
I'm using Electron (formerly Atom Shell) for a desktop application.
It is a lot of fun to use and event-driven programming has its merits.
I've got all HTML, CSS & JS power at my hands because it ...
37
votes
9
answers
15k
views
Disable pinch zoom in webkit (or electron)
Is there any way to disable pinch zoom in an electron app?
I can't get it to work from inside the web-view with normal javascript methods as described here: https://stackoverflow.com/a/23510108/...
24
votes
6
answers
38k
views
set color of windows titlebar - electron.js
I would like to change the color of the titlebar for the windows version of my electron app. currently it is white, how do I change it to, for example, blue?
24
votes
5
answers
20k
views
How to print a DIV in ElectronJS
i'm trying to convert my web into an app made in ElectronJS
in my web i print a div with a barcode. this works pretty fine, but in electronjs i can't reach this.
originally i'd use this function
$...
20
votes
8
answers
19k
views
Electron Content Security Policy error when connecting to my api
Creating a simple template electron app. I want to do a fetch request to my api but am continuously stopped by the Content Security Policy errors and I have no idea how to fix them.
Refused to ...
20
votes
3
answers
9k
views
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 ...
20
votes
4
answers
17k
views
Using Firebase with Electron
I'm trying to use Firebase with Electron. When installing it just like I would on a web page it doesn't work because Electron pages are hosted locally and don't have a hostname. This is the error I'm ...
19
votes
10
answers
49k
views
Select Text & highlight selection or get selection value (React)
I have a React application which displays some spans:
<span>Hello</span> <span>my</span> <span>name</span> <span> is </span> ...
I would like the user ...
16
votes
3
answers
35k
views
How to display a JPG image from a Node.js buffer (UInt8Array)
I have a custom Node.JS addon that transfers a jpg capture to my application which is working great - if I write the buffer contents to disk, it's a proper jpg image, as expected.
var wstream = fs....
15
votes
3
answers
2k
views
Voice over is not reading what I am typing in textbox
Below is my code:
<form>
<div class="form-group loginFormGrp">
<label class="caption">Backup Cloud</label>
<div class="custSelect ...
15
votes
1
answer
1k
views
How to set Electron Browser Window DevTools width?
How to set Electron Browser Window DevTools width?
I know how to set width and height of the mainwindow and open DevTools:
mainWindow = new BrowserWindow({width: 1920, height: 1080}
// Open the ...
13
votes
2
answers
20k
views
Is it possible to access and read localstorage for an electron application
I have built an electron app that allows the user to move elements such as divs around the screen, and saves their locations in localstorage as a class. This is so when the page reloads or is reopened ...
12
votes
4
answers
7k
views
Transparent Windows on Linux (Electron)
Using the transparent argument and setting it to true when creating a new BrowserWindow in Electron usually gives the window a transparent background... But on Linux that isn't the case for my ...