removes redundant rejoin button
This commit is contained in:
parent
022186964d
commit
4b8b2ce5f3
@ -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 <strong>' + (localStorage.getItem('last-gm') === 'true' ? 'GM ' : '') + localStorage.getItem('last-name') + '</strong> in <strong>' + localStorage.getItem('last-room') + '</strong> <i class="fa-solid fa-right-to-bracket"></i>'
|
||||
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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user