diff --git a/templates/shared/_layout.html b/templates/shared/_layout.html index bdccb0c..cb32ae2 100644 --- a/templates/shared/_layout.html +++ b/templates/shared/_layout.html @@ -33,7 +33,12 @@ socket.onmessage = function(event) { //alert(`[message] Data received from server: ${event.data}`); - location.reload(true) + if (event.data == "reload") { + location.reload(true); + } + else { + alert('unknown command: '+event.data); + } }; socket.onclose = function(event) {