From 9dd518eba33fe137e79169afccc5d41d03e7d91d Mon Sep 17 00:00:00 2001 From: IsaccoSordo Date: Tue, 8 Oct 2024 09:56:48 +0200 Subject: [PATCH] fix: test --- packages/beacon-core/src/utils/multi-tab-channel.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/beacon-core/src/utils/multi-tab-channel.ts b/packages/beacon-core/src/utils/multi-tab-channel.ts index 45267f2e1..2bbebf271 100644 --- a/packages/beacon-core/src/utils/multi-tab-channel.ts +++ b/packages/beacon-core/src/utils/multi-tab-channel.ts @@ -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())