Reconnect to poll if application was closed.

This commit is contained in:
armored-dragon 2024-09-04 14:58:14 -05:00
parent 4eea4a09f0
commit 39eed69596
No known key found for this signature in database
GPG key ID: C7207ACC3382AD8B

View file

@ -59,9 +59,8 @@
if (url == newUrl) {
active = true;
// TODO: Is this needed?
// If we are connected to a poll already, repopulate the screen
// if (poll.id != '') return populateScreen();
if (poll.id != '') return joinPoll({id: poll.id});
// Request a list of active polls if we are not already in one
if (poll.id == '') return getActivePolls();