Mercurial > prosody-modules
comparison 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 |
comparison
equal
deleted
inserted
replaced
5722:4acb48604490 | 5723:5f7f6ee32a11 |
---|---|
1 (function () { | 1 (function () { |
2 // If QR lib loaded ok, show QR button on desktop devices | 2 // If QR lib loaded ok, show QR button on desktop devices |
3 if(window.QRCode) { | 3 if(window.QRCode) { |
4 new QRCode(document.getElementById("qr-invite-page"), document.location.href); | 4 new QRCode(document.getElementById("qr-invite-page"), document.location.href); |
5 document.getElementById('qr-button-container').classList.remove("d-none"); | 5 document.getElementById('qr-button-container').classList.add("d-md-block"); |
6 } | 6 } |
7 | 7 |
8 // Detect current platform and show/hide appropriate clients | 8 // Detect current platform and show/hide appropriate clients |
9 if(window.platform) { | 9 if(window.platform) { |
10 var platform_friendly = null; | 10 var platform_friendly = null; |