mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-01 18:33:33 +00:00
use type, remove console
This commit is contained in:
parent
b3a9e7ccba
commit
5e9ef9f23f
5 changed files with 8 additions and 4 deletions
|
|
@ -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';
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue