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

8 lines
366 B
TypeScript

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