Update main.js

This commit is contained in:
Thomas G 2022-08-28 11:54:31 +10:00
parent 9d06cf0758
commit 97b9682220
1 changed files with 2 additions and 2 deletions

View File

@ -10,10 +10,10 @@ function openClientPopup(ip,port,placefile,mode) {
document.querySelector('.popupcontainer_client').removeAttribute('id');
if (mode == "host") {
// user is hosting, use port and place file
window.location.href = "archblox://host/" + port + "|" + placefile;
window.location.href = "archblox://host/" + port + ":" + placefile;
} else if (mode == "join") {
// user is joining a game, use ip and port
window.location.href = "archblox://join/" + ip + "|" + port;
window.location.href = "archblox://join/" + port + ":" + ip;
} else {
// no information so just use the default
window.location.href = "archblox://";