ha-tdv-bar icon indicating copy to clipboard operation
ha-tdv-bar copied to clipboard

Fails to render on iOS 14.6

Open ijavid opened this issue 9 months ago • 0 comments

The component fails to render with the following error:

Can't find variable BroadcastChannel. 

I've an older iPad running the latest Companion App, also tested in default Safari. My iOS version is 14.6.

BroadcastChannel only supported in Safari from 15.4 and up. reference

I'm suggesting adding a polyfill or switching to a non-native version: https://github.com/JSmith01/broadcastchannel-polyfill https://github.com/pubkey/broadcast-channel

I have not checked the code thoroughly and asking just from curiosity, where do you use BroadcastChannels?

ijavid avatar May 23 '24 08:05 ijavid