feat: Switched from hardcoded domain to relative path to improve portability.

This commit is contained in:
muli 2022-08-20 15:55:16 +02:00
parent 92d2c37000
commit b65755de8d
1 changed files with 1 additions and 2 deletions

View File

@ -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];