Skip to content

Commit

Permalink
Resolve #54 - TypeError Ambilight.onCloseSettings: Cannot read proper…
Browse files Browse the repository at this point in the history
…ty 'attr' of null
  • Loading branch information
WesselKroos committed Sep 5, 2020
1 parent 61f38a0 commit e0ac60b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scripts/youtube-ambilight.js
Original file line number Diff line number Diff line change
Expand Up @@ -2625,7 +2625,7 @@ class Ambilight {
)
}

$.s('.ytp-ambilight-settings-button').attr('aria-expanded', true)
this.settingsMenuBtn.attr('aria-expanded', true)

const playerElem = $.s('.html5-video-player')
if(playerElem) {
Expand All @@ -2650,7 +2650,7 @@ class Ambilight {
this.settingsMenuElem.on('animationend', this.onSettingsFadeOutEnd, (listener) => this.onSettingsFadeOutEndListener = listener)
this.settingsMenuElem.class('fade-out')

$.s('.ytp-ambilight-settings-button').attr('aria-expanded', false)
this.settingsMenuBtn.attr('aria-expanded', false)

const playerElem = $.s('.html5-video-player')
if(playerElem) {
Expand Down

0 comments on commit e0ac60b

Please sign in to comment.