feat: feature/mvp-sprint-1 Added getThingtime to window object
This commit is contained in:
parent
b6a066b630
commit
7a2eae1ee7
@ -400,6 +400,7 @@ export const ThingtimeProvider = (props: any): JSX.Element => {
|
|||||||
React.useEffect(() => {
|
React.useEffect(() => {
|
||||||
try {
|
try {
|
||||||
window.setThingtime = setThingtime
|
window.setThingtime = setThingtime
|
||||||
|
window.getThingtime = getThingtime
|
||||||
window.thingtime = thingtimeReference
|
window.thingtime = thingtimeReference
|
||||||
window.tt = thingtimeReference
|
window.tt = thingtimeReference
|
||||||
} catch {
|
} catch {
|
||||||
@ -563,7 +564,7 @@ export const ThingtimeProvider = (props: any): JSX.Element => {
|
|||||||
return () => {
|
return () => {
|
||||||
window.removeEventListener("keydown", keyListener)
|
window.removeEventListener("keydown", keyListener)
|
||||||
}
|
}
|
||||||
}, [setThingtime, thingtimeReference, set])
|
}, [setThingtime, getThingtime, thingtimeReference, set])
|
||||||
|
|
||||||
const value = {
|
const value = {
|
||||||
thingtime: thingtimeReference,
|
thingtime: thingtimeReference,
|
||||||
|
Loading…
Reference in New Issue
Block a user