;
            } catch (e) {
                console.warn("Permission request failed:", e);
            }
        }
		
		document.getElementById('generatedUrl').onclick = function() {
            if (this.value) {
                navigator.clipboard.writeText(this.value).then(() => {
                    this.classList.add('copied');
                    setTimeout(() => this.classList.remove('copied'), 1000);
                });
            }
        };

        async function initializeDevices