Skip to content

Commit

Permalink
Merge pull request #15 from ghassanmas/scheme-agnostic
Browse files Browse the repository at this point in the history
fix: when location scheme is http
  • Loading branch information
Colin-Fredericks authored Sep 4, 2024
2 parents 3b65cc6 + f367dd2 commit afaf676
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hx.js
Original file line number Diff line number Diff line change
Expand Up @@ -1178,7 +1178,7 @@ var HXGlobalJS = function () {
}

// Match the site in case we need it for something later.
let courseSiteURL = windowURL.match(/https:\/\/.+\//)[0];
let courseSiteURL = windowURL.match(/https?:\/\/.+\//)[0];

if (option == 'site') {
return courseSiteURL;
Expand Down

0 comments on commit afaf676

Please sign in to comment.