Update main.js

This commit is contained in:
Thomas G 2022-08-28 12:28:52 +10:00
parent 1666f16f77
commit ece94db032
1 changed files with 3 additions and 1 deletions

View File

@ -17,7 +17,9 @@ function openClientPopup(ip,port,placefile,mode) {
} else if (mode == "hostandjoin") {
// user is hosting and joining their own game, use everything
window.location.href = "archblox://host/" + port + ":" + placefile;
window.location.href = "archblox://join/" + port + ":" + ip;
setTimeout(function(){
window.location.href = "archblox://join/" + port + ":" + ip;
},500);
} else {
// no information so just use the default
window.location.href = "archblox://";