mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-07 03:12:33 +01:00
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) {
|
DOMListFactory.setTheme = function(theme, remove) {
|
||||||
if ( theme === 'auto' && typeof self.watchMedia === 'function' ) {
|
if ( theme === 'auto' && typeof self.matchMedia === 'function' ) {
|
||||||
const mql = self.watchMedia('(prefers-color-scheme: dark)');
|
const mql = self.matchMedia('(prefers-color-scheme: dark)');
|
||||||
theme = mql instanceof Object && mql.matches === true
|
theme = mql instanceof Object && mql.matches === true
|
||||||
? 'dark'
|
? 'dark'
|
||||||
: '';
|
: '';
|
||||||
|
Loading…
Reference in New Issue
Block a user