Publier Globinours 1.0.0-rc.3
This commit is contained in:
parent
ea8c24d622
commit
9a2b4068da
325 changed files with 38230 additions and 20 deletions
2
public/assets/pwa.js
Normal file
2
public/assets/pwa.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
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);});
|
||||
Loading…
Add table
Add a link
Reference in a new issue