about summary refs log tree commit diff
path: root/scripts/main.js
diff options
context:
space:
mode:
authorPerflyst <mail@perflyst.de>2020-01-01 23:22:23 +0100
committerGeorg Lukas <georg@op-co.de>2020-01-21 19:52:03 +0100
commit6b7ddb937b4e3227724b21cf80fffb0caef2a986 (patch)
treef774095edd2bc2cd6b6192774d22ce5506478d10 /scripts/main.js
parentfe629cf51a3708c79df82329b950bffecd8264f3 (diff)
downloadphp-xmpp-invitation-6b7ddb937b4e3227724b21cf80fffb0caef2a986.tar.gz
Add QRCode generation
Diffstat (limited to 'scripts/main.js')
-rw-r--r--scripts/main.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/main.js b/scripts/main.js
index cc13762..c591159 100644
--- a/scripts/main.js
+++ b/scripts/main.js
@@ -15,6 +15,7 @@
 			item.innerHTML = client_array[id];
 			list.appendChild(item);
 		}
+		new QRCode(document.getElementById("qrcode"), "xmpp:" + display_data.jid);
 	}
 
 	function load_clients(url) {