IT WORKS. that was actually pretty easy. Now to fix all the :any types.
This commit is contained in:
parent
46d99053b3
commit
ac0f31cc07
3
test.mjs
3
test.mjs
|
@ -1,3 +0,0 @@
|
||||||
import * as util from "./scripts/util.mjs"
|
|
||||||
|
|
||||||
console.log(util.createCode())
|
|
|
@ -17,6 +17,7 @@ export function init(){
|
||||||
ID("createRoomButton").addEventListener("click", e => {
|
ID("createRoomButton").addEventListener("click", e => {
|
||||||
create(e)
|
create(e)
|
||||||
// picker.destroy("createGameSelectColorBar")
|
// picker.destroy("createGameSelectColorBar")
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const mineSlider = ID("createGameOptionsMinePercent")
|
const mineSlider = ID("createGameOptionsMinePercent")
|
||||||
|
|
|
@ -26,6 +26,7 @@ function leaveGame(socket){
|
||||||
socket.on('connect', function(data){
|
socket.on('connect', function(data){
|
||||||
status.connected()
|
status.connected()
|
||||||
})
|
})
|
||||||
|
|
||||||
socket.on('disconnect', function(data){
|
socket.on('disconnect', function(data){
|
||||||
status.disconnected()
|
status.disconnected()
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue