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

Error in LIne 259 #13

Closed gartenbauer closed 3 years ago

gartenbauer commented 3 years ago

Hi, I get the fallowing error:

Logger: frontend.js.latest.202104073 Source: components/system_log/init.py:190 First occurred: 5:00:07 (3 occurrences) Last logged: 7:00:06 http://XXXX:8123/hacsfiles/gallery-card/gallery-card.js:259:51 Uncaught SyntaxError: Unexpected token ?

Which is: https://github.com/TarheelGrad1998/gallery-card/blob/c3ca7591f950d8bc669842bbfa67c2cb6642fd61/gallery-card.js#L259

My config looks like this:

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

Does this relate to you browser version ? I.e Not supporting for Nullish coalescing operator (??) ?

https://caniuse.com/mdn-javascript_operators_nullish_coalescing

gartenbauer commented 3 years ago

This is possible! Thank you for this hint 😊