jakearchibald / svgomg

Web GUI for SVGO
https://jakearchibald.github.io/svgomg/
MIT License
5.76k stars 476 forks source link

Electron App / Offline usage #150

Open kevyworks opened 5 years ago

kevyworks commented 5 years ago

Is is possible you can also release a electron app?

Alex-D commented 5 years ago

In Chrome:

Should do the work. No need to build an another 50Mo app for that I think :)

jakearchibald commented 5 years ago

@kevyworks why do you want an Electron app?

kevyworks commented 5 years ago

@jakearchibald to run it offline..

kevyworks commented 5 years ago

@Alex-D Where is this "..." I am on Mac OS

jakearchibald commented 5 years ago

@kevyworks it already works offline.

Alex-D commented 5 years ago

@kevyworks maybe a hamburger icon?

schroef commented 5 years ago

It does not work offline and how would there be an install for this in Chrome on osx?!?!

SO offline in like save the page and open it?! Because that wont work and no errors show in the inspector.

Screen Shot 2019-03-19 at 21 02 58
schroef commented 5 years ago

PS saving it from Safari as webarchive does work. Yet not everything goes well, but it dismiss stays in view. I guess illustrator is also a bugger.

I need to delete the BS header illustrator has. <!-- Generator: Adobe Illustrator 21.0.0, SVG Export Plug-In -->

otherwise i get this error Load failed: Error in parsing SVG: Text data outside of root node. Line: 9 Column: 1 Char:

Alex-D commented 5 years ago

Ensure you have Chrome 73 (latest version, PWA is a new feature from this version).

jakearchibald commented 5 years ago

@schroef you don't need to save it, just visit https://jakearchibald.github.io/svgomg/ when you're offline.

surma commented 5 years ago

@Alex-D That is not entirely correct. PWAs and offline capabilities have been supported in Chrome for a long time. The new feature in Chrome 73 is that you can properly install a PWA as a Desktop PWA on Mac OS.

But as Jake said, for the app to work offline, you just have to have visited the app once and then you can just navigate to the app’s URL even when offline.

schroef commented 5 years ago

@surma , Yes i just noticed that as well.

schroef commented 5 years ago

PS i just tried this chrome://flags/#enable-desktop-pwas Set it to Enable and now i got it install on osx :)

Screen Shot 2019-04-02 at 20 17 31