nelsontky / gh-pages-url-shortener

Minimal URL shortener that can be entirely hosted on GitHub pages.
https://ccb.wtf/1
GNU General Public License v3.0
1.34k stars 506 forks source link

Refactor code #55

Closed vladimyr closed 4 years ago

vladimyr commented 4 years ago

Checking if hostname ends with .github.io eliminates the need for the PATH_SEGMENTS_TO_SKIP variable.

nelsontky commented 4 years ago

While I may not agree with those changes, I see the merits in them too! Feel free to create your own fork of this (you can get a domain for free over at https://www.freenom.com/), and I will be glad to list it in the README file!