diff --git a/app/static/js/app.js b/app/static/js/app.js index 0a2d373..a5c2c13 100644 --- a/app/static/js/app.js +++ b/app/static/js/app.js @@ -1702,8 +1702,74 @@ async function loadDeviceStats() { // Load stats when Stats tab is clicked document.addEventListener('DOMContentLoaded', () => { document.getElementById('statsTabBtn')?.addEventListener('shown.bs.tab', loadDeviceStats); + document.getElementById('shareTabBtn')?.addEventListener('shown.bs.tab', loadDeviceShare); }); +/** + * Load device share tab - generate QR code and URI for sharing own contact + */ +async function loadDeviceShare() { + const container = document.getElementById('deviceShareContent'); + if (!container) return; + + container.innerHTML = '
Share this QR code or URI so others can add your device as a contact.
'; + html += ''; + html += '