Questions tagged [electron]
Electron (formerly Atom Shell) is a framework created by GitHub that lets you write cross-platform desktop applications using HTML, CSS and JavaScript. Electron is based upon Node.js and Chromium.
electron
15,506
questions
2
votes
1
answer
2k
views
Hide mouse cursor in Atom-Shell
Is it possible to hide the mouse cursor in a atom-shell app? I've tried adding to my index.html with a style tag to "cursor: none" for the body element but it dosent work. I am running atom-shell on ...
1
vote
1
answer
1k
views
Keyboard events in atom-shell
I am trying to use atom-shell, but I don't understand how the DOM events differ from a normal browser. I can't find doc about it either.
If I add:
document.onkeydown = function() { alert('...'); }
...
4
votes
0
answers
2k
views
What is the proper way to load JavaScript scripts in Atom Shell?
This probably a completely stupid question but I just started working with Atom shell.
I have an index.html with a login form. I boostrap the jquery form validation in the document ready like so:
$...
1
vote
1
answer
678
views
How to test an app built with atom-shell
Does anyone have an example of testing a app built with atom-shell.
Thanks.
24
votes
3
answers
39k
views
How to call a JavaScript function on a web page rendered by Electron?
I'm trying to write a wrapper for Twitter using Electron (formerly Atom Shell).
My main.js file (it looks almost identical to the "Hello World" example, I just changed it in one place):
var app = ...
2
votes
1
answer
5k
views
Module version mismatch with headless browser and desktop Node
I'm getting a "Module version mismatch error" when I try to use a headless browser with a desktop Node shell. I've tried Zombiejs and Phantomjs with both nw.js and atom-shell; in both cases as soon as ...
15
votes
2
answers
7k
views
Desktop applications with Meteor.js
The options I've found for creating desktop applications in HTML, CSS, and JavaScript are:
Electron (formerly Atom-Shell)
NW.js (formerly Node-Webkit)
However, there doesn't seem to be any clear ...
4
votes
4
answers
5k
views
Getting a app to be run on startup
I'm making a mac app using atom shell that lives in the menubar. I was wondering what my options would be for getting it to run at startup.
Does it have to be done manually by the user?
Do I need ...
3
votes
2
answers
5k
views
Atom-shell + AngularJS - how to open a file save dialog?
So I'm developing a native OSX/Windows app using Atom-shell and AngularJS. I'm trying to open a file save dialog.
Atom-shell has a "dialog" API:
https://github.com/atom/atom-shell/blob/master/docs/...
7
votes
1
answer
1k
views
Disable backspace in Atom-shell
I've been scouring the interwebz and Atom-shell documentation trying to find out how to disable the back() functionality of the backspace key within a browser window.
I would prefer not to have to ...
8
votes
2
answers
12k
views
How do run reload() and open() in Atom-Shell
1) Is this javascript call not supported on Atom-shell?
window.open('#/openpage','_self',false)
2) In NodeJS-Webkit, I could either reload the HTML with win.reload() without the toolbar and buttons. ...
3
votes
2
answers
946
views
loadHtml instead of loadUrl in atom-shell? (trying to use jade)
atom-shell only has a method to load HTML from a URL
window.loadUrl('file://...')
But I want to use Jade
var html = jade.renderFile('file://...');
Is there a way to use the compiled html in atom-...
6
votes
2
answers
3k
views
How can I scroll content of <webview> tag from JavaScript?
atom-shell: https://github.com/atom/atom-shell
version: v0.20.2
I am using <webview> tag to embed a page. <webview> tag has shadow-root which has one tag, <object id="browser-plugin-1 ....
3
votes
1
answer
2k
views
How to disable DevTools in Atom Shell
I've been trying to figure out how to disable the devtools in Atom Shell. I've tried using a window event listener to no avail. It seems that the devtools-opened window event listener doesn't work. ...
1
vote
1
answer
863
views
Tabular Browser Windows for Atom-Shell?
I'm playing around with the atom-shell and was wondering if anybody has used/written a module for making tubular browser windows?
Currently, it seems, atom-shell opens a completely new window when ...