mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-04 11:51:36 +02:00
Fix setTheme types (#6894)
This commit is contained in:
parent
1331e960fa
commit
f5ef133f1e
@ -176,7 +176,7 @@ export function getCustomTheme(themeName: string): ICustomTheme {
|
||||
*
|
||||
* @param {string} theme new theme
|
||||
*/
|
||||
export async function setTheme(theme: string): Promise<void> {
|
||||
export async function setTheme(theme?: string): Promise<void> {
|
||||
if (!theme) {
|
||||
const themeWatcher = new ThemeWatcher();
|
||||
theme = themeWatcher.getEffectiveTheme();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user