chore: clean up FSM code

This commit is contained in:
Paul Makles
2022-06-29 10:28:24 +01:00
parent c142c2e74d
commit 68c8ca50f3
6 changed files with 44 additions and 20 deletions

6
src/lib/window.ts Normal file
View File

@@ -0,0 +1,6 @@
export function injectController(key: string, value: any) {
(window as any).controllers = {
...((window as any).controllers ?? {}),
[key]: value,
};
}