This commit is contained in:
Nathan Bierema 2025-05-31 12:02:07 -04:00
parent 65fab44a20
commit 99807755bd

View File

@ -155,22 +155,22 @@ function DemoApp(props: Props) {
}); });
}; };
const toggleImmutableSupport = () => { const toggleImmutableSupport = async () => {
const options = getOptions(location); const options = getOptions(location);
navigate( await navigate(
buildUrl({ ...options, supportImmutable: !options.supportImmutable }), buildUrl({ ...options, supportImmutable: !options.supportImmutable }),
); );
}; };
const toggleTheme = () => { const toggleTheme = async () => {
const options = getOptions(location); const options = getOptions(location);
navigate(buildUrl({ ...options, dark: !options.dark })); await navigate(buildUrl({ ...options, dark: !options.dark }));
}; };
const setTheme = (options: Options, theme: string) => { const setTheme = async (options: Options, theme: string) => {
navigate(buildUrl({ ...options, theme })); await navigate(buildUrl({ ...options, theme }));
}; };
const toggleTimeoutUpdate = () => { const toggleTimeoutUpdate = () => {