by sverhagen · 1y ago · 0 comments
1. Open the site in an incognito window.
2. Turn off your Internet.
3. Do what you’ve got to do.
4. Close browser window.
As a bonus, and this makes it better than just flipping the offline switch in developer tools, if you turn off Internet in a way that keeps the browser thinking it’s online, you can also peek at whether any network requests are made (for pathological cases where the app does everything locally but phones home anyway).
The funny thing is that it feels safer to download a desktop app and give it the same data even though it's usually much harder to validate if it's shipping your data somewhere else.
What kind of safeguards are possible with a web app?