@@ -515,13 +515,13 @@ var ciDebugBar = {
515515 // If a cookie is set with a value, we force the color scheme
516516 if ( ciDebugBar . readCookie ( 'debug-bar-theme' ) === 'dark' )
517517 {
518- ciDebugBar . removeClass ( ciDebugBar . toolbar , 'light' ) ;
519- ciDebugBar . addClass ( ciDebugBar . toolbar , 'dark' ) ;
518+ ciDebugBar . removeClass ( ciDebugBar . toolbarContainer , 'light' ) ;
519+ ciDebugBar . addClass ( ciDebugBar . toolbarContainer , 'dark' ) ;
520520 }
521521 else if ( ciDebugBar . readCookie ( 'debug-bar-theme' ) === 'light' )
522522 {
523- ciDebugBar . removeClass ( ciDebugBar . toolbar , 'dark' ) ;
524- ciDebugBar . addClass ( ciDebugBar . toolbar , 'light' ) ;
523+ ciDebugBar . removeClass ( ciDebugBar . toolbarContainer , 'dark' ) ;
524+ ciDebugBar . addClass ( ciDebugBar . toolbarContainer , 'light' ) ;
525525 }
526526
527527 btnTheme . addEventListener ( 'click' , function ( ) {
@@ -532,24 +532,24 @@ var ciDebugBar = {
532532 // If there is no cookie, and "prefers-color-scheme" is set to "dark"
533533 // It means that the user wants to switch to light mode
534534 ciDebugBar . createCookie ( 'debug-bar-theme' , 'light' , 365 ) ;
535- ciDebugBar . removeClass ( ciDebugBar . toolbar , 'dark' ) ;
536- ciDebugBar . addClass ( ciDebugBar . toolbar , 'light' ) ;
535+ ciDebugBar . removeClass ( ciDebugBar . toolbarContainer , 'dark' ) ;
536+ ciDebugBar . addClass ( ciDebugBar . toolbarContainer , 'light' ) ;
537537 }
538538 else
539539 {
540540 if ( theme === 'dark' )
541541 {
542542 ciDebugBar . createCookie ( 'debug-bar-theme' , 'light' , 365 ) ;
543- ciDebugBar . removeClass ( ciDebugBar . toolbar , 'dark' ) ;
544- ciDebugBar . addClass ( ciDebugBar . toolbar , 'light' ) ;
543+ ciDebugBar . removeClass ( ciDebugBar . toolbarContainer , 'dark' ) ;
544+ ciDebugBar . addClass ( ciDebugBar . toolbarContainer , 'light' ) ;
545545 }
546546 else
547547 {
548548 // In any other cases: if there is no cookie, or the cookie is set to
549549 // "light", or the "prefers-color-scheme" is "light"...
550550 ciDebugBar . createCookie ( 'debug-bar-theme' , 'dark' , 365 ) ;
551- ciDebugBar . removeClass ( ciDebugBar . toolbar , 'light' ) ;
552- ciDebugBar . addClass ( ciDebugBar . toolbar , 'dark' ) ;
551+ ciDebugBar . removeClass ( ciDebugBar . toolbarContainer , 'light' ) ;
552+ ciDebugBar . addClass ( ciDebugBar . toolbarContainer , 'dark' ) ;
553553 }
554554 }
555555 } , true ) ;
0 commit comments