The previous logic for generating the script URL on the live site didn't work on GitHub Pages because the resulting URL was missing /hipcheck at the start of the path. This commit fixes that by updating the host resolution logic to handle the GitHub Pages case.
The previous logic for generating the script URL on the live site didn't work on GitHub Pages because the resulting URL was missing
/hipcheck
at the start of the path. This commit fixes that by updating the host resolution logic to handle the GitHub Pages case.