Attach Zoo to window
This commit is contained in:
@ -33,6 +33,10 @@ export function App() {
|
|||||||
* - Maybe, "ZOO" would be better, but it doesn't look as nice.
|
* - Maybe, "ZOO" would be better, but it doesn't look as nice.
|
||||||
*/
|
*/
|
||||||
const Zoo = { state: {} }
|
const Zoo = { state: {} }
|
||||||
|
if (typeof window !== 'undefined') {
|
||||||
|
(window as any).Zoo = Zoo
|
||||||
|
}
|
||||||
|
|
||||||
useRefreshSettings(paths.FILE + 'SETTINGS')
|
useRefreshSettings(paths.FILE + 'SETTINGS')
|
||||||
const { project, file } = useLoaderData() as IndexLoaderData
|
const { project, file } = useLoaderData() as IndexLoaderData
|
||||||
const navigate = useNavigate()
|
const navigate = useNavigate()
|
||||||
|
|||||||
Reference in New Issue
Block a user