#Electron’s “remote” module was another #JS #security blunder.
on 02024-07-05discussion of alternative ways to store user settings in #Electron #JS.
on 02024-07-05Aha, the reason #Electron has “preload” is because originally you couldn’t load modules in your renderer pages. This covers the #security implications a bit. #JS
on 02024-07-05Another question about how to use sqlite3 with #Electron; mentions in passing how to use other modules. #JS
on 02024-07-05To use a Node native module, such as sqlite3, with #Electron, you generally need to rebuild it for use with Electron (which is generally pretty easy, a single command with a couple of npm dependencies). You generally can’t use the normally-compiled Node module. It used to work with electron-builder, but it’s been abandoned. #JS
on 02024-07-05#Electron used to have two separate ways to build executables, electron-packager and electron-builder, but electron-packager was the one that survived. electron-forge grew around it. #JS
on 02024-07-05console.log() works in #Electron #JS but on Microsoft Windows you have to set ELECTRON_ENABLE_LOGGING=1 to see it in your console window
how to do file uploads to #Electron apps in React with Redux. #JS
on 02024-07-05On Linux and Microsoft Windows you can set an #Electron app window icon with an option when you open the window, but not on macOS. #JS
on 02024-07-05apparently #Electron uses an archiver called asar? #JS
on 02024-07-05How to hide the menu bar in #Electron apps. #JS
on 02024-07-05Supposedly the ultimate #Electron #JS guide. #toread
on 02024-07-05Recent versions of #Electron don’t expose Node.js functions in the browser window (since version 5), but you can set webPreferences.nodeIntegration to true and contextIsolation to false if you’re willing to accept the risk. But the recommended approach is to pass stuff back and forth with ipcRenderer and ipcMain. Some of the answers have extensive histories of Electron #security. #JS
old versions of jQuery, d3, etc., tried to be smart about #CommonJS modules, which caused problems with loading them in #Electron; there’s a simple hack here for convincing them that they’re not being loaded in a CommonJS environment, if I understand correctly. #JS
on 02024-07-05"Hyper": “a terminal built on web technologies”, by Guillermo Rauch, written in #Electron
on 02017-06-20