From d44e7d098f619df0ed7792e2d216af31b4ffba4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Sat, 8 Feb 2020 22:23:48 +0100 Subject: added support for contact me links --- js/messaging.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/messaging.js b/js/messaging.js index 2f5e767..9ae0b99 100644 --- a/js/messaging.js +++ b/js/messaging.js @@ -12,7 +12,10 @@ const API_ENDPOINT = "https://gimb.tk/test.php"; // const API_ENDPOINT = "http://localhost:5000/test.php"; var receivedmessages = null; - +if(window.location.search.substring(1)) { + document.getElementById("full_name").value = window.location.search.substring(1); + validateName(); +} loadMessages(true, 0); localforage.setItem('directory', { -- cgit v1.2.3