3 ms·
Now I am curious, why is Electron a better option than putting a simple webserver in your code and then open it in the users favourite browser? You get the same
by tomjen3 5y ago
Now I am curious, why is Electron a better option than putting a simple webserver in your code and then open it in the users favourite browser? You get the same options in terms of what the JS can do, except you aren't limited to Javascript on the backend and you don't need to ship the Chrome runtime to a user that already has one.
- brundolf 5y agoA few things: 1) Packaging/general polish. With the server solution the user doesn't get a desktop icon, or a single .app/.exe, etc. Their window manager doesn't work with the app the normal way. Etc. 2) Certain other native integrations. An electron app can populate the Mac menu bar, it can use native right-click menus, it can do rich notifications that aren't constrained to the browser's notifications API, it can show a red dot in the system dock, etc. 3) Stability of pinning to a specific Chromium version. This can work for some things- mostly developer tools where users may not care as much about polish and may care more about reducing install size. But it's not really a replacement.