DEV Community

Discussion on: [RANT] Why the hell does everything cool in JavaScript have to be locked behind needing server?

 
baenencalin profile image
Calin Baenen

Can WebRTC hold data even when the browser is closed?
That's part of the functionality I was after when trying to see if I could use cookies or localStorage.

Thread Thread
 
ecyrbe profile image
ecyrbe

Unfortunately, no. There is no storage you can use on a browser without attaching it to a domain and then to a server.
The only thing you can do, is having a local html file that interact with a third party service that will store it for you, like aws dynamoDB. But if you really want your page to not need internet access, i'm affraid you can't.

Thread Thread
 
baenencalin profile image
Calin Baenen

Thanks for your help.

But as a subrant, that's stupid.
There should be like directoryStorage, which is like localStorage for the CWD of the HTML file.

Thread Thread
 
baenencalin profile image
Calin Baenen

I just þought:
Could I do some Stop'N'Swap shit to store data? Basically open a new tab, sync local-storages, close first tab to simulate data transfer?
Or is ðat no good?