Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaccoSordo committed Oct 8, 2024
1 parent 6169a49 commit 9dd518e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/beacon-core/src/utils/multi-tab-channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ type BCMessage = {
}

const logger = new Logger('MultiTabChannel')
const isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
const isMobile = typeof window === 'undefined' ? /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
navigator.userAgent
)
) : false

export class MultiTabChannel {
private id: string = String(Date.now())
Expand Down

0 comments on commit 9dd518e

Please sign in to comment.