Skip to content

Commit

Permalink
Tweak connection button flag
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePotatoArchivist committed May 30, 2024
1 parent aba1c6b commit e3322d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ConnectionButton.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
let tooltipShown = false;
$: {
if (!host || connected) {
tooltipShown = true
if (connected) setTimeout(() => tooltipShown = false, 5000);
tooltipShown = true
if (connected || host) {
setTimeout(() => tooltipShown = false, 4000);
}
}
Expand Down

0 comments on commit e3322d6

Please sign in to comment.