Osama fixed this bug in the following PR.
https://github.com/discourse/discourse-color-scheme-toggle/pull/57