From 4b8b2ce5f3e7fe98af5fb94990cd8fbec05c77d8 Mon Sep 17 00:00:00 2001 From: Arindy Date: Wed, 12 Feb 2025 05:43:19 +0100 Subject: [PATCH] removes redundant rejoin button --- src/main/resources/templates/index.html | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html index c9e9c6b..3dda786 100644 --- a/src/main/resources/templates/index.html +++ b/src/main/resources/templates/index.html @@ -524,19 +524,9 @@ } if (localStorage.getItem('last-name') && localStorage.getItem('last-room')) { - let rejoin = document.createElement('button'); - rejoin.id = 'rejoin'; - rejoin.style.alignSelf = 'center'; - rejoin.style.marginTop = '20px'; - rejoin.style.marginRight = '20px'; - rejoin.innerHTML = 'Rejoin as ' + (localStorage.getItem('last-gm') === 'true' ? 'GM ' : '') + localStorage.getItem('last-name') + ' in ' + localStorage.getItem('last-room') + ' ' - rejoin.onclick = () => { - document.getElementById('name').value = localStorage.getItem('last-name'); - document.getElementById('room').value = localStorage.getItem('last-room'); - document.getElementById('gm').checked = localStorage.getItem('last-gm') === 'true'; - start(); - } - document.getElementById('start-container').appendChild(rejoin) + document.getElementById('name').value = localStorage.getItem('last-name'); + document.getElementById('room').value = localStorage.getItem('last-room'); + document.getElementById('gm').checked = localStorage.getItem('last-gm') === 'true'; } function configurePopover() { -- 2.47.2