This commit is contained in:
Mr. Stallion 2021-12-29 15:05:35 -06:00
parent df4ac8640e
commit e4c72656d5
2 changed files with 4 additions and 5 deletions

View File

@ -494,9 +494,9 @@
// Hack!
if (process.platform === 'win32') {
if (core.state.generalSettings?.risingDisableWindowsHighContrast) {
document.querySelector('html').classList.add('disableWindowsHighContrast');
document.querySelector('html')?.classList.add('disableWindowsHighContrast');
} else {
document.querySelector('html').classList.remove('disableWindowsHighContrast');
document.querySelector('html')?.classList.remove('disableWindowsHighContrast');
}
}

View File

@ -48,7 +48,6 @@
import {GeneralSettings} from './common';
import { getSafeLanguages, updateSupportedLanguages } from './language';
import log from 'electron-log';
import core from '../chat/core';
const browserWindow = remote.getCurrentWindow();
@ -389,9 +388,9 @@
// Hack!
if (process.platform === 'win32') {
if (this.settings?.risingDisableWindowsHighContrast) {
document.querySelector('html').classList.add('disableWindowsHighContrast');
document.querySelector('html')?.classList.add('disableWindowsHighContrast');
} else {
document.querySelector('html').classList.remove('disableWindowsHighContrast');
document.querySelector('html')?.classList.remove('disableWindowsHighContrast');
}
}