- firefox fix

This commit is contained in:
gocivici 2024-02-25 16:31:39 +03:00
parent 88eb75b248
commit 75a4f9f09c

View File

@ -198,7 +198,7 @@ socket.emit('clickPosition',clickCoordinates)
})
//
document.querySelector('#textInput').addEventListener('submit',(event)=>{
event.preventDefault() //do not refresh page whenform submited
event.preventDefault ? event.preventDefault() : event.returnValue = false; //do not refresh page whenform submited
var inputValue = document.querySelector('#input').value
if(inputValue.includes("/name ")){
console.log('namechange')