putdotio / putio-sync

Command-line program to sync a folder between put.io and your computer.
https://put.io
MIT License
54 stars 9 forks source link

Use window.location.origin instead of hardcoded host #44

Closed lwc closed 4 years ago

lwc commented 7 years ago

Fixes https://github.com/putdotio/putio-sync/issues/35 for me.

Note I didn't fix https://github.com/putdotio/putio-sync/blob/master/web/src/app/App.jsx#L46 as I'm not clear on the purpose of that hostname method - it's... unique 😅 regardless, it doesn't seem to effect downloads, so 🎉

Edit: I just saw https://github.com/putdotio/putio-sync/issues/35#issuecomment-274040167 and I think I understand - see second commit d8f8e0d simplifying those upload urls

lwc commented 7 years ago

@cenkalti @igungor ping