Use websocket from library

This commit is contained in:
Magnus Åhall 2024-01-07 16:20:21 +01:00
parent ddb49bad13
commit e94ba7a3a9
6 changed files with 19 additions and 85 deletions

View file

@ -1,10 +0,0 @@
function refreshCSS() {
let links = document.getElementsByTagName('link')
Array.from(links).forEach(l=>{
if (l.rel == 'stylesheet' && !l.hasAttribute('x-no-reload')) {
let cache = Math.floor(Math.random()*100000)
l.href = l.href.replace(/\?.*/, '') + `?cache=${cache}`
console.log(l.href)
}
})
}