checkbox hide fix
This commit is contained in:
parent
26a64f4136
commit
5c64a6b161
|
@ -107,12 +107,12 @@
|
|||
var checkbox = document.getElementById('themer');
|
||||
var inverter = document.getElementById('inverter');
|
||||
|
||||
function darkTheme(media) {
|
||||
if (!CSSSupported('filter', 'invert(100%)')) {
|
||||
checkbox.parentNode.hidden = true;
|
||||
return;
|
||||
}
|
||||
if (!CSSSupported('filter', 'invert(100%)')) {
|
||||
checkbox.parentNode.hidden = true;
|
||||
return;
|
||||
}
|
||||
|
||||
function darkTheme(media) {
|
||||
inverter.setAttribute('media', media);
|
||||
inverter.textContent = inverter.textContent.trim();
|
||||
localStorage.setItem('darkTheme', media);
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -107,12 +107,12 @@
|
|||
var checkbox = document.getElementById('themer');
|
||||
var inverter = document.getElementById('inverter');
|
||||
|
||||
function darkTheme(media) {
|
||||
if (!CSSSupported('filter', 'invert(100%)')) {
|
||||
checkbox.parentNode.hidden = true;
|
||||
return;
|
||||
}
|
||||
if (!CSSSupported('filter', 'invert(100%)')) {
|
||||
checkbox.parentNode.hidden = true;
|
||||
return;
|
||||
}
|
||||
|
||||
function darkTheme(media) {
|
||||
inverter.setAttribute('media', media);
|
||||
inverter.textContent = inverter.textContent.trim();
|
||||
localStorage.setItem('darkTheme', media);
|
||||
|
|
Loading…
Reference in New Issue
Block a user