- firefox fix
This commit is contained in:
parent
88eb75b248
commit
75a4f9f09c
@ -198,7 +198,7 @@ socket.emit('clickPosition',clickCoordinates)
|
|||||||
})
|
})
|
||||||
//
|
//
|
||||||
document.querySelector('#textInput').addEventListener('submit',(event)=>{
|
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
|
var inputValue = document.querySelector('#input').value
|
||||||
if(inputValue.includes("/name ")){
|
if(inputValue.includes("/name ")){
|
||||||
console.log('namechange')
|
console.log('namechange')
|
||||||
|
Loading…
Reference in New Issue
Block a user