Skip to content

Commit

Permalink
disable reconnect onvisibilitychange
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalmi committed Aug 20, 2023
1 parent 3f1e40e commit fdbcbb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/nostr/PubSub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const reconnect = () => {

document.addEventListener('visibilitychange', () => {
if (document.visibilityState === 'visible') {
reconnect();
//reconnect();
}
});
document.addEventListener('online', reconnect);
Expand Down

0 comments on commit fdbcbb4

Please sign in to comment.