Fix setTheme types (#6894)

pull/21833/head
Dariusz Niemczyk 2021-10-01 16:40:04 +02:00 committed by GitHub
parent 1331e960fa
commit f5ef133f1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ export function getCustomTheme(themeName: string): ICustomTheme {
* *
* @param {string} theme new theme * @param {string} theme new theme
*/ */
export async function setTheme(theme: string): Promise<void> { export async function setTheme(theme?: string): Promise<void> {
if (!theme) { if (!theme) {
const themeWatcher = new ThemeWatcher(); const themeWatcher = new ThemeWatcher();
theme = themeWatcher.getEffectiveTheme(); theme = themeWatcher.getEffectiveTheme();