Category: Electron

Posted in Electron

Calling preventDefault() on new-window event doesn’t prevent window opening

According to the docs the following should prevent the window from being opened but the new window is still being opened. window.webContents.on(‘new-window’, function(event, urlToOpen) {…

Continue Reading
Posted in Electron

Webview – allow to load local resources when using data URLs

using Atom shell 0.19.5 with the webview tag set the src attribute of the webview to a data URL that has a reference to a…

Continue Reading
Posted in Electron

Atom & App in one executable

Would it be possible to merge atom & my app into one single executable? Similarly to how https://github.com/crcn/nexe merges node and javascript?

Continue Reading
Posted in Electron

Fullscreen on Mac still shows window title and kiosk mode not working

I have the following code that creates a fullscreen window on OS X atom-shell: 0.20.7 app.on(‘ready’, function() { var Screen = require(‘screen’); var size =…

Continue Reading
Posted in Electron

Mailto: openExternal does not work on Windows.

I’ve been trying to use openExternal to open the mail application from within my atom-shell app (with an email passed in), however it’s not working…

Continue Reading
Posted in Electron

remove frame of existing window

something akin to browserWindow.setFrame(false), if possible.

Continue Reading
Posted in Electron

how to use .insertCSS ?

when i try to use the .insertCSS api, nothing happened. i use it like : ..insertCSS(“body{background:#000}”) or ..insertCSS(__dirname + “/css/webview.css”) it’s wrong?

Continue Reading
Posted in Electron

Webgl in linux no available?

using http://html5test.com/ normal chrome browser: YOUR BROWSER SCORES 518 OUT OF 555 POINTS (WebGL 3D graphics Yes ) atom-shell: YOUR BROWSER SCORES 497 OUT OF…

Continue Reading
Posted in Electron

Tray does not appears on Linux

The tray example does not work on Linux. The tray is not shown. Tested with atom-shell 0.22.3 + Ubuntu 14 and atom-shell 0.22.3 + Debian…

Continue Reading
Posted in Electron

Links with external protocol in “new-window” event becomes “about:blank”

I have an embedded webview that contains a link, like this: <a target=”_blank” href=”skype:Charlie_Hess?call”></a> And am trying to handle that link externally using the new-window…

Continue Reading