5 ms·
Yep, this is not a bad idea but unfortunately browsers do not allow you access to local storage since they do not treat the local filesystem as designated domai
by dingdingdang 10y ago
Yep, this is not a bad idea but unfortunately browsers do not allow you access to local storage since they do not treat the local filesystem as designated domain paths.. which is completely super annoying & makes offline webapps a very temporal thing since they NEED a domain name cached before you can use them.
Note: based on my experience when hacking around with local app 2 years ago on Chrome and FF so things may have changed?
- weaksauce 10y agoYou can use node if you want those kinds of permissions. Or any other general purpose language with runtime.
- Godel_unicode 10y agoNode is not exactly "can't fuck it up" simple.
- dingdingdang 10y agoThe whole point of running and using browser apps is that they are guaranteed to be sandboxed - Node.js breaks this sandboxing 100% which makes it more powerful but also inherently a mess security wise. This mess can to a certain extend be accommodated on the server side but certainly not on the client side where code from 1000s of devs will eventually be run without vetting.