mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-23 10:52:43 +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) {
|
||||
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
Block a user