TarheelGrad1998 / gallery-card

A custom card for Home Assistant that will display images and/or videos from a folder in the style of a gallery.
97 stars 30 forks source link

TypeError #30

Closed gartenbauer closed 2 years ago

gartenbauer commented 2 years ago

Hi there 😊 Has this error something to do with your integration or with HACS?

Logger: frontend.js.latest.202112290 Source: components/system_log/init.py:189 First occurred: 30. Dezember 2021, 19:00:13 (91 occurrences) Last logged: 13:00:13 http://XXX.XXX.X.X:8123/hacsfiles/gallery-card/gallery-card.js?hacstag=28428386732:177:42 Uncaught TypeError: Cannot read property 'tagName' of null

TarheelGrad1998 commented 2 years ago

Hrm, could be me. I might be using something not universally supported. What browser are you using?

gartenbauer commented 2 years ago

I'm using:

Microsoft Edge Version 96.0.1054.62 (Official Build) (64-Bit)

TarheelGrad1998 commented 2 years ago

Hrm, Edge isn't producing the error for me. Mind sharing the yaml to your card?

gartenbauer commented 2 years ago

There you go:

type: custom:gallery-card
menu_alignment: Hidden
entities:
  - path: media-source://media_source/local/slideshow
    recursive: false
slideshow_timer: '3'
TarheelGrad1998 commented 2 years ago

Thanks, for the life of me, I can't reproduce the error, but I'll take a shot at a fix anyway.

gartenbauer commented 2 years ago

Thank you very much 🎉 I will close this issue because the functionality is not impaired.

TarheelGrad1998 commented 2 years ago

This is hopefully fixed in v3.3, just released.