Aug 23, 2017 · 1 min read
I had a similar idea on how to do this. Since in this solution, the service worker is only used to detect the failed POST request, I tried to check for offline states before submitting the data, using navigator.onLine.
I wrote about it here:
https://mxb.at/blog/offline-forms/
What do you think of it?
