Attach Zoo to window

This commit is contained in:
Dan Shaw
2024-05-29 12:30:23 -07:00
parent 9366f68a88
commit 2fb318b154

View File

@ -33,6 +33,10 @@ export function App() {
* - Maybe, "ZOO" would be better, but it doesn't look as nice.
*/
const Zoo = { state: {} }
if (typeof window !== 'undefined') {
(window as any).Zoo = Zoo
}
useRefreshSettings(paths.FILE + 'SETTINGS')
const { project, file } = useLoaderData() as IndexLoaderData
const navigate = useNavigate()