use type, remove console

This commit is contained in:
Kendall Garner 2024-01-22 18:52:14 -08:00
parent b3a9e7ccba
commit 5e9ef9f23f
No known key found for this signature in database
GPG key ID: 18D2767419676C87
5 changed files with 8 additions and 4 deletions

View file

@ -35,6 +35,7 @@ import { store } from './features/core/settings/index';
import MenuBuilder from './menu';
import { hotkeyToElectronAccelerator, isLinux, isMacOS, isWindows, resolveHtmlPath } from './utils';
import './features';
import type { TitleTheme } from '/@/renderer/types';
declare module 'node-mpv';
@ -416,7 +417,7 @@ const createWindow = async () => {
new AppUpdater();
}
const theme = store.get('theme') as 'dark' | 'light' | 'system' | undefined;
const theme = store.get('theme') as TitleTheme | undefined;
nativeTheme.themeSource = theme || 'dark';
};