mirror of
https://github.com/techno-tim/littlelink-server.git
synced 2024-11-23 05:35:28 +01:00
fix(email): Fixed email button contents
This commit is contained in:
parent
49c0d65857
commit
77c5cfba2a
2
env.js
2
env.js
@ -236,6 +236,7 @@ function useEnv(document) {
|
|||||||
|
|
||||||
var emailEl = document.getElementById('email');
|
var emailEl = document.getElementById('email');
|
||||||
if (env.EMAIL) {
|
if (env.EMAIL) {
|
||||||
|
emailEl.innerHTML = env.EMAIL
|
||||||
emailEl.href = env.EMAIL;
|
emailEl.href = env.EMAIL;
|
||||||
} else {
|
} else {
|
||||||
emailEl.nextElementSibling.remove()
|
emailEl.nextElementSibling.remove()
|
||||||
@ -245,6 +246,7 @@ function useEnv(document) {
|
|||||||
|
|
||||||
var emailAltEl = document.getElementById('email-alt');
|
var emailAltEl = document.getElementById('email-alt');
|
||||||
if (env.EMAIL_ALT) {
|
if (env.EMAIL_ALT) {
|
||||||
|
emailAltEl.innerHTML = env.EMAIL_ALT
|
||||||
emailAltEl.href = env.EMAIL_ALT;
|
emailAltEl.href = env.EMAIL_ALT;
|
||||||
} else {
|
} else {
|
||||||
emailAltEl.nextElementSibling.remove()
|
emailAltEl.nextElementSibling.remove()
|
||||||
|
Loading…
Reference in New Issue
Block a user