From 7a2eae1ee7955f0e6656f91031c4336809762c34 Mon Sep 17 00:00:00 2001 From: Nikolaj Frey Date: Wed, 16 Aug 2023 10:15:47 +1000 Subject: [PATCH] feat: feature/mvp-sprint-1 Added getThingtime to window object --- remix/app/Providers/ThingtimeProvider.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/remix/app/Providers/ThingtimeProvider.tsx b/remix/app/Providers/ThingtimeProvider.tsx index 6f7d506..f7d1f97 100644 --- a/remix/app/Providers/ThingtimeProvider.tsx +++ b/remix/app/Providers/ThingtimeProvider.tsx @@ -400,6 +400,7 @@ export const ThingtimeProvider = (props: any): JSX.Element => { React.useEffect(() => { try { window.setThingtime = setThingtime + window.getThingtime = getThingtime window.thingtime = thingtimeReference window.tt = thingtimeReference } catch { @@ -563,7 +564,7 @@ export const ThingtimeProvider = (props: any): JSX.Element => { return () => { window.removeEventListener("keydown", keyListener) } - }, [setThingtime, thingtimeReference, set]) + }, [setThingtime, getThingtime, thingtimeReference, set]) const value = { thingtime: thingtimeReference,