cameron / squirt

Speed read the web.
http://www.squirt.io
Apache License 2.0
1.22k stars 206 forks source link

Work on file:// urls and localhost urls #110

Open adamchainz opened 10 years ago

adamchainz commented 10 years ago

Reading some local html files but having small problems. file:// urls don't work at all (Failed to load resource file://www.squirt.io/bm/squirt.js), and with a localhost http server serving them, I get redirected to /install.html at the end of every session (debug behaviour?). Would be great to have them working :)

GeorgeGray commented 10 years ago

I think this is a browser issue, if you're on file:// then it wont let you load resources form the web; as a workaround you could use a webserver:

https://code.google.com/p/mongoose/ (this one is nice and lightweight)

and use http://localhost:8080/myfile.txt

adamchainz commented 10 years ago

Okay. I did solve it with a local webserver (python -m SimpleHTTPServer ;) ), however there is that second issue - after reading, it redirects to /install.html every time. Is this debugging code you have left in?

GeorgeGray commented 10 years ago

Ahh, I managed to miss that part, somehow (I should have used squirt!)

adamchainz commented 10 years ago

Actually, made a pull request, realized how lazy I was being just sending in an issue.