From 459518be95eca6a8314af7556ad086e1a8e46e1e Mon Sep 17 00:00:00 2001 From: Thomas G <62822072+Thomasluigi07@users.noreply.github.com> Date: Sun, 28 Aug 2022 12:25:28 +1000 Subject: [PATCH] update game page --- public/js/main.js | 4 ++++ resources/views/pages/gamepage.blade.php | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) 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 @@