mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Fix typo in code re. preferred theme colors
This commit is contained in:
parent
e94f0ddcec
commit
c61fe6a72b
1 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue