diff mod_invites_page/static/invite.js @ 5723:5f7f6ee32a11

mod_invites_page: Stop displaying the QRCode to mobile devices
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Thu, 16 Nov 2023 19:17:44 +0100
parents 40558231ab7d
children ef3aa6901a93
line wrap: on
line diff
--- a/mod_invites_page/static/invite.js	Thu Nov 16 18:06:40 2023 +0100
+++ b/mod_invites_page/static/invite.js	Thu Nov 16 19:17:44 2023 +0100
@@ -2,7 +2,7 @@
 	// If QR lib loaded ok, show QR button on desktop devices
 	if(window.QRCode) {
 		new QRCode(document.getElementById("qr-invite-page"), document.location.href);
-		document.getElementById('qr-button-container').classList.remove("d-none");
+		document.getElementById('qr-button-container').classList.add("d-md-block");
 	}
 
 	// Detect current platform and show/hide appropriate clients