WesselKroos / youtube-ambilight

This browser extension adds ambient light to YouTube videos
MIT License
79 stars 8 forks source link

Failed to execute 'addColorStop' on 'CanvasGradient': The provided double value is non-finite #151

Closed WesselKroos closed 1 year ago

WesselKroos commented 1 year ago

Describe the bug

Sometimes the gradient color stops array that is generated has an extra item which is invalid:

[
  NaN, 
  "rgba(0,0,0,undefined)", 
  "remove", 
  undefined, 
  undefined
]

To reproduce

Steps to reproduce the behavior: ?

Desktop (please complete the following information):