diff --git a/src/theme.ts b/src/theme.ts index 8f95f8c784..aaebe3746d 100644 --- a/src/theme.ts +++ b/src/theme.ts @@ -176,7 +176,7 @@ export function getCustomTheme(themeName: string): ICustomTheme { * * @param {string} theme new theme */ -export async function setTheme(theme: string): Promise { +export async function setTheme(theme?: string): Promise { if (!theme) { const themeWatcher = new ThemeWatcher(); theme = themeWatcher.getEffectiveTheme();