This commit is contained in:
2026-02-06 11:08:58 +01:00
parent f96993bb3b
commit aa30e33805
5 changed files with 8 additions and 29 deletions

View File

@@ -8,7 +8,8 @@
document.addEventListener("DOMContentLoaded", function() {
const API_ENDPOINT = 'scripts/add/send.php';
// Use absolute path from site root
const API_ENDPOINT = '/scripts/add/send.php';
const isLocalFile = window.location.protocol === 'file:';
// ==========================================