Seldaek / slippy

HTML Presentations
814 stars 89 forks source link

fix slides download from non-default port #17

Closed dbu closed 7 years ago

dbu commented 7 years ago

i just tried exporting my slides and found that when running on a non-default port, the link is created wrongly. this fixes it (although not in my situation, i was using php -S which is single threaded and simply blocks the download because the server is already busy at that point... if i would have found an easy check to know if we run inside the built-in webserver i would have added a check and a warning message, but did not find quickly.). the right solution is to run index.php on the cli.