WIP
This commit is contained in:
@@ -187,5 +187,7 @@ const DevTools: Component<{ gameContainer: HTMLElement }> = ({
|
||||
};
|
||||
|
||||
export function use(container: HTMLElement): void {
|
||||
// @ts-ignore - just for console access
|
||||
window.$ = (name: string) => currentScene.components.get(name);
|
||||
render(() => <DevTools gameContainer={container} />, document.body);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user