Category: Electron

Posted in Electron

fakepath

I use the to get the filepath but i get C:\fakepath\tmp.asm I don’t know how to change the settings about the chromium

Continue Reading
Posted in Electron

Desktop Notification doesnt show up on Mac OS

E.g. when doing new Notification(‘hello’) or running window.location.href = “http://ttsvetko.github.io/HTML5-Desktop-Notifications/” and then clicking the button, in both cases no desktop notification shows up. I found…

Continue Reading
Posted in Electron

WebContents `dom-ready` event

I would like to use WebContents.insertCSS() as soon as the DOM is ready. I tried using WebContents.on(‘did-finish-load’), but you can see the page being loaded…

Continue Reading
Posted in Electron

[Windows] Slow startup due to antivirus softwares

I had a quite slow startup on windows so I made some benchmarks and found that most antivirus softwares are highly slowing startups on windows….

Continue Reading
Posted in Electron

width and height couldn’t setting

<webview id=”foo” src=”https://www.github.com/” style=”width:640px; height:1080px”></webview> width and height not change js didn’t change it

Continue Reading
Posted in Electron

Question about ASAR and file access

As I understand things, if I package my app using the ASAR format I will no longer be able to use the fs module to…

Continue Reading
Posted in Electron

App URL support

Is it possible to connect an electron app to app URL schema like my-app://view/friends, such that websites could link to a particular section of the…

Continue Reading
Posted in Electron

tag how to change content

<!DOCTYPE html> <html> <head> <meta charset=”UTF-8″> <title>T</title> <style type=”text/css”> body{background-color: #242424} </style> <script type=”text/javascript”> onload = function () { alert(‘x’);//show console.log(‘x’);//not show alert(__dirname);//not show }…

Continue Reading
Posted in Electron

Disable caching in webview

Hi, As per this issue #891 disable chrome BrowserWindow caching, there is a new flag –disable-http-cache introduced to disable caching. But it still caches the…

Continue Reading
Posted in Electron

error when html page with

some webpage omit the http prefix to minify the page, like http://taobao.com electron now can not recognize this kind of url, and will log error…

Continue Reading