In Electron, I have my main process opening a BrowserWindow. The BrowserWindow loads one html page and then the same window eventually loads another html page.  main.js  var mainWindow; global.mainState = {   settings: {} } mainWindow = createWindow(...
I want a menu, defined in the main process to call JS code inside the current browser window in an atom/electron application.  Getting main process globals form the browser window is  const remote = require('remote') const foo    = remote.get...
I need to download a file to a specific location in my Electron program. I tried implementing this API but failed. Then I tried implementing the official API, but couldn't realize how to actually start downloading the file.  How can I download a...
I'm looking to replicate behavior similar to that of Launchy/Quicksilver/Spotlight.   I want to have an electron app that's always running. When I hit a shortcut key, the electron app is brought to the foreground and to focus.   I understand...
I have some data in the localstorage that has to be deleted on app.quit(). But I see no way to do so from the main process.   Is there a way to call a renderer function from main?  I know about var remote = require('remote'); but it seems to...
Is there a faster alternative to window.requestAnimationFrame() for endless loops that don't block I/O?  What I'm doing in the loop isn't related to animation so I don't care when the next frame is ready, and I have read that window.r...
We are using Firebase Realtime Database in our Electron application. Executing "set" or "update" the first time after authentication works flawlessly. However, after waiting some time (idle > one minute), executing a update or set...
I have been playing around with the file system drag and drop functionality of Electron apps.  What I want:   I need to know , if I drag a div out of electron app into OS ,  I just want to know target Os path. I am not interested in copying file oper...
I am trying to add functionality to my Electron app that will allow users to open a file in the app, specifically plain text files. After looking at the Electron documentation, I found this page. I added this code to my app.js file, which I linked to...
How do you view error messages and console logs in Electron during development? Also, is it possible for the logs to be written directly into a file?     Edit: Kind of like the errors and console logs displayed by Chrome's dev tools:  Except in E...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.