cozy / cozy-browser-sdk

Cozy Data System client for the browser
http://dev.cozy.io
MIT License
7 stars 12 forks source link

Clean up getFileURL #16

Open aenario opened 8 years ago

aenario commented 8 years ago

Test this part of the code to see if it works in both http and https pages and if we should remove the encodeURI.

frankrousseau commented 8 years ago

I think it should handle port too.

aenario commented 8 years ago

One of window.location.host and window.location.hostname include port if i recall correctly. Let's make sure we use the correct one !