feat: Switched from hardcoded domain to relative path to improve portability.
Some checks reported errors
continuous-integration/drone/pr Build encountered an error

This commit is contained in:
muli 2022-08-20 15:55:16 +02:00
parent 92d2c37000
commit b65755de8d

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