mirror of
https://github.com/hcengineering/platform.git
synced 2025-05-29 03:21:13 +00:00
Old safari doesn't support BroadcastChannel (#3402)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
6336f2901c
commit
1a53af053c
@ -29,7 +29,7 @@ function syncDrafts (): void {
|
||||
|
||||
// #region Broadcast
|
||||
|
||||
const bc = BroadcastChannel !== undefined ? new BroadcastChannel(activeDraftsKey) : undefined
|
||||
const bc = 'BroadcastChannel' in window ? new BroadcastChannel(activeDraftsKey) : undefined
|
||||
|
||||
type BroadcastMessage = BroadcastGetMessage | BroadcastGetResp | BroadcastAddMessage | BroadcastRemoveMessage
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user