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

@ -1,5 +1,6 @@
import { IpcRendererEvent, ipcRenderer, webFrame } from 'electron';
import Store from 'electron-store';
import type { TitleTheme } from '/@/renderer/types';
const store = new Store();
@ -43,7 +44,7 @@ const fontError = (cb: (event: IpcRendererEvent, file: string) => void) => {
ipcRenderer.on('custom-font-error', cb);
};
const themeSet = (theme: 'dark' | 'light' | 'system'): void => {
const themeSet = (theme: TitleTheme): void => {
ipcRenderer.send('theme-set', theme);
};