Skip to content

Commit

Permalink
fix: when location scheme is http
Browse files Browse the repository at this point in the history
  • Loading branch information
ghassanmas committed Feb 26, 2024
1 parent 3b65cc6 commit f367dd2
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 f367dd2

Please sign in to comment.