diff --git a/public/js/main.js b/public/js/main.js index 24a158e..c160e46 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -14,6 +14,10 @@ function openClientPopup(ip,port,placefile,mode) { } else if (mode == "join") { // user is joining a game, use ip and port window.location.href = "archblox://join/" + port + ":" + ip; + } 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; } else { // no information so just use the default window.location.href = "archblox://"; diff --git a/resources/views/pages/gamepage.blade.php b/resources/views/pages/gamepage.blade.php index 6a375b5..1c900a2 100644 --- a/resources/views/pages/gamepage.blade.php +++ b/resources/views/pages/gamepage.blade.php @@ -21,7 +21,10 @@

Natural Disaster Survival

By ARCHBLOX

- +

+ + +