mirror of https://github.com/gorhill/uBlock.git
Fix typo in code re. preferred theme colors
This commit is contained in:
parent
e94f0ddcec
commit
c61fe6a72b
|
@ -72,8 +72,8 @@ DOMListFactory.root = document.querySelector(':root');
|
|||
/******************************************************************************/
|
||||
|
||||
DOMListFactory.setTheme = function(theme, remove) {
|
||||
if ( theme === 'auto' && typeof self.watchMedia === 'function' ) {
|
||||
const mql = self.watchMedia('(prefers-color-scheme: dark)');
|
||||
if ( theme === 'auto' && typeof self.matchMedia === 'function' ) {
|
||||
const mql = self.matchMedia('(prefers-color-scheme: dark)');
|
||||
theme = mql instanceof Object && mql.matches === true
|
||||
? 'dark'
|
||||
: '';
|
||||
|
|
Loading…
Reference in New Issue