Sorry I am not very familiar with Electron.
Sorry I am not very familiar with Electron.
This then becomes exactly the same as writing a web app, with anything that cannot be done by the renderer (Ex: file access) being done by the 'server'. Always wondered why this was not an officially strictly recommended way of doing this.
Wasn't there a Mac app that recently got a lot of flack for this?
https://www.electronjs.org/docs/tutorial/application-archite...
> Electron exposes full access to Node.js both in the main and the renderer process.
You can try this by opening a console on any webpage and trying to do fetch requests or add img tags to the page that are loading resources from localhost.
But really for stuff like file system access just use the node APIs, don't shuffle this stuff through any hand rolled IPC.
If you're shipping your own Chromium, shouldn't it be trivial to remove those limits?
ermagerd
Let's say you're writing an IDE in it. How would you invoke compilers & debuggers, cache filesystem/type information, state, etc. without breaking out of the browser sandbox somehow?