Skip to content

Commit

Permalink
fix: Fixed multiple inChat emit events (#1598)
Browse files Browse the repository at this point in the history
  • Loading branch information
icleitoncosta authored Mar 25, 2023
1 parent dd3d010 commit 4900765
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/layers/host.layer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ export class HostLayer {
}

protected async checkInChat() {
const inChat = isInsideChat(this.page).catch(() => null);
const inChat = await isInsideChat(this.page).catch(() => null);

this.isInChat = !!inChat;

Expand Down

0 comments on commit 4900765

Please sign in to comment.