Skip to main content

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
24 votes
3 answers
38k 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 = ...
evlogii's user avatar
  • 831
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 ...
apparatix's user avatar
  • 1,502
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 ...
Matt's user avatar
  • 5,587
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 ...
ThomasReggi's user avatar
  • 58.1k
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/...
Devin Mooers's user avatar
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 ...
Ding's user avatar
  • 3,075
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. ...
James Lei's user avatar
  • 338
3 votes
2 answers
945 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-...
laggingreflex's user avatar
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 ....
snufkon's user avatar
  • 301
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. ...
Ding's user avatar
  • 3,075
1 vote
1 answer
862 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 ...
shennan's user avatar
  • 11.4k
2 votes
1 answer
774 views

Can node-webkit or atom-shell take screenshot of entire desktop screen?

I want to take a screenshot of entire screen (PrintScr), not just browser window. Is this possible with either node-webkit or atom-shell?
laggingreflex's user avatar
0 votes
1 answer
519 views

Open an iframe with a URL and then run some JS

I'm building an app using Atom Shell, and I'm trying to open an iframe which would load a PDF file, and then, once the PDF file is fully loaded, run some JS from the scope of that iframe (I'm willing ...
alexandernst's user avatar
  • 14.8k
0 votes
0 answers
263 views

How can online/offline versions of an HTML5 app access the same LocalStorage?

A benefit often mentioned (e.g., here, here) about HTML5 LocalStorage is support for offline apps. However, the same-origin policy makes me think that an app at foo.com won't see the same ...
Nathan's user avatar
  • 1,641
1 vote
1 answer
820 views

how to understand the browser-side vs. client-side of atom-shell

like node.js, atom-shell have the difference of browser-side vs. client-side, but it's explanation is very unclear(https://github.com/atom/atom-shell/blob/master/docs/api/synopsis.md). How to ...
Chogri's user avatar
  • 336

15 30 50 per page