Files
piik/src/client/channel/bootstrap.ts
T

8 lines
428 B
TypeScript

import { takeClientLaunchBootstrap } from "../lib/session";
import { applyLaunchCopy } from "../ui/copy";
import { initTheme } from "../ui/theme";
const bootstrap = takeClientLaunchBootstrap();
initTheme(bootstrap.presentation?.theme, bootstrap.presentation?.explicit?.includes("theme") ?? false);
if (bootstrap.presentation) applyLaunchCopy(bootstrap.presentation, bootstrap.presentation.explicit?.includes("copy") ?? false);