From 142fa7748da0f0e322e51054b9169f1f7f03999e Mon Sep 17 00:00:00 2001 From: Albert Folch Date: Tue, 2 Apr 2024 12:33:11 +0200 Subject: [PATCH] change commit-button js --- public/scripts/commit-button.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/scripts/commit-button.js b/public/scripts/commit-button.js index bfb8fde..df284d9 100644 --- a/public/scripts/commit-button.js +++ b/public/scripts/commit-button.js @@ -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);