Use websocket from library
This commit is contained in:
parent
ddb49bad13
commit
e94ba7a3a9
6 changed files with 19 additions and 85 deletions
|
|
@ -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)
|
||||
}
|
||||
})
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue