Skip to content

Commit

Permalink
change commit-button js
Browse files Browse the repository at this point in the history
  • Loading branch information
albertfolch-redeemeum committed Apr 2, 2024
1 parent b96d767 commit 142fa77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/scripts/commit-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function getScriptOrigin() {
'script[src$="/commit-button.js"]'
);
const src = scriptElCommitButton.getAttribute("src");
if (src.startsWith("../../")) {
if (src.startsWith("../../") || src.startsWith("./")) {
return `${window.location.origin}/#`;
}
const url = new URL(src);
Expand Down

0 comments on commit 142fa77

Please sign in to comment.