Kibibit / kb-frosted-cards

Make Cards and Popups blur everything behind them.
MIT License
10 stars 1 forks source link

Style is not loading #4

Open r15ch13 opened 4 years ago

r15ch13 commented 4 years ago

Bulletproof injection seems not bulletproof enough :grin:

image

Added a console.log to insertStyleRule to output card.getStyles()

HA: 0.118 Theme: Your theme Frosted: 1.3.1 installed via HACS (also tried beta 1.5.3)

Edit: It works in the HA Android app though. 😕

poudenes commented 4 years ago

Frosted effect is not working in Safari (Versie 13.1.2 (13609.3.5.1.5)) OSX 10.13.6 And its not working in de Home Assistant iOS App

panhans commented 4 years ago

For me its working with AndroidApp and of course Chrome. But Firefox didn't load it, too.

viktak commented 3 years ago

Same story here: Works in Chrome but not in Firefox...

Console output for me under FF:

TypeError: newWay is null
    insertStyleRule http://192.168.1.99:8123/hacsfiles/kb-frosted-cards/kb-frosted-cards.js:61
    addCssToCard http://192.168.1.99:8123/hacsfiles/kb-frosted-cards/kb-frosted-cards.js:49
    promise callback*addCssToCard http://192.168.1.99:8123/hacsfiles/kb-frosted-cards/kb-frosted-cards.js:49
    injectPromises http://192.168.1.99:8123/hacsfiles/kb-frosted-cards/kb-frosted-cards.js:11
    <anonymous> http://192.168.1.99:8123/hacsfiles/kb-frosted-cards/kb-frosted-cards.js:10
    <anonymous> http://192.168.1.99:8123/hacsfiles/kb-frosted-cards/kb-frosted-cards.js:98
kb-frosted-cards.js:50:31
    addCssToCard http://192.168.1.99:8123/hacsfiles/kb-frosted-cards/kb-frosted-cards.js:50
    (Async: promise callback)
    addCssToCard http://192.168.1.99:8123/hacsfiles/kb-frosted-cards/kb-frosted-cards.js:50
    injectPromises http://192.168.1.99:8123/hacsfiles/kb-frosted-cards/kb-frosted-cards.js:11
    <anonymous> http://192.168.1.99:8123/hacsfiles/kb-frosted-cards/kb-frosted-cards.js:10
    <anonymous> http://192.168.1.99:8123/hacsfiles/kb-frosted-cards/kb-frosted-cards.js:98