Files
Desktop/ts/shims/themeChanged.ts
2025-09-16 17:39:03 -07:00

12 lines
350 B
TypeScript

// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import { getThemeType } from '../util/getThemeType.js';
export async function themeChanged(): Promise<void> {
if (window.reduxActions && window.reduxActions.user) {
const theme = await getThemeType();
window.reduxActions.user.userChanged({ theme });
}
}