tdvtdv / ha-tdv-bar

A Home Assistant lovelace card to display bar chart oriented to display power sensors
55 stars 1 forks source link

Fails to render on iOS 14.6 #17

Open ijavid opened 4 months ago

ijavid commented 4 months ago

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?