Fixed automatic CSS refresh

This commit is contained in:
Magnus Åhall 2024-04-05 09:27:47 +02:00
parent 3669b7e6ec
commit 6a757c94b0

View File

@ -113,7 +113,7 @@ class App extends Component {
this.websocket.register('open', ()=>console.log('websocket connected')) this.websocket.register('open', ()=>console.log('websocket connected'))
this.websocket.register('close', ()=>console.log('websocket disconnected')) this.websocket.register('close', ()=>console.log('websocket disconnected'))
this.websocket.register('error', msg=>console.log(msg)) this.websocket.register('error', msg=>console.log(msg))
this.websocket.register('message', this.websocketMessage) this.websocket.register('message', msg=>this.websocketMessage(msg))
this.websocket.start() this.websocket.start()
}//}}} }//}}}
websocketMessage(data) {//{{{ websocketMessage(data) {//{{{
@ -121,7 +121,7 @@ class App extends Component {
switch (msg.Op) { switch (msg.Op) {
case 'css_reload': case 'css_reload':
refreshCSS() this.websocket.refreshCSS()
break; break;
} }
}//}}} }//}}}