Skip to content

Commit

Permalink
fix: check for channels activities only if network is active
Browse files Browse the repository at this point in the history
  • Loading branch information
AXeL-dev committed Sep 15, 2022
1 parent 607b0b1 commit 0e50a03
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ui/components/webext/Background/ChannelChecker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ export default function ChannelChecker(props: ChannelCheckerProps) {
);

useInterval(() => {
if (!navigator.onLine) {
return;
}
if (!ready) {
setReady(true);
} else {
Expand Down

0 comments on commit 0e50a03

Please sign in to comment.