if('serviceWorker'in navigator&&location.protocol==='https:')window.addEventListener('load',()=>navigator.serviceWorker.register('/service-worker.js',{scope:'/'}).catch(()=>{}));
document.addEventListener('DOMContentLoaded',()=>{const logout=document.querySelector('.settings-dropdown form[action="/logout"]');if(!logout||logout.parentElement.querySelector('[href="/account/devices"]'))return;const link=document.createElement('a');link.className='dropdown-item';link.href='/account/devices';link.textContent=(document.documentElement.lang==='en'?'📱 Trusted devices':'📱 Appareils connectés');logout.before(link);});
