From b65755de8d231affd95edb390c5a4ef25c415086 Mon Sep 17 00:00:00 2001 From: muli Date: Sat, 20 Aug 2022 15:55:16 +0200 Subject: [PATCH] feat: Switched from hardcoded domain to relative path to improve portability. --- assets/js/contact_form.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/assets/js/contact_form.js b/assets/js/contact_form.js index 5f1fa03..1d8bf65 100644 --- a/assets/js/contact_form.js +++ b/assets/js/contact_form.js @@ -1,5 +1,4 @@ -const ajaxUrl = 'https://spielwiese.wtf-eg.de/php/contact_form.php'; -// const submit_button = document.getElementsByClassName('contact_form__submit_button')[0]; +const ajaxUrl = '../php/contact_form.php'; const contact_form = document.getElementsByClassName('content__contact_form')[0]; const subject = document.getElementsByClassName('contact_form__subject')[0]; const message = document.getElementsByClassName('contact_form__message')[0];