feat: feature/mvp-sprint-1 Added alias tt for thingtime in commander

This commit is contained in:
Nikolaj Frey 2023-08-15 11:15:19 +10:00
parent 466204e302
commit 83da88ac54

View File

@ -303,6 +303,7 @@ export const Commander = (props) => {
try { try {
// first try to execute literal javscript // first try to execute literal javscript
const fn = `() => { return ${commandValue} }` const fn = `() => { return ${commandValue} }`
const tt = thingtime
const evalFn = eval(fn) const evalFn = eval(fn)
const realVal = evalFn() const realVal = evalFn()
setThingtime(commandPath, realVal) setThingtime(commandPath, realVal)
@ -353,6 +354,7 @@ export const Commander = (props) => {
commanderActive, commanderActive,
commandIsAction, commandIsAction,
commandPath, commandPath,
thingtime,
commandValue, commandValue,
escapedCommandValue, escapedCommandValue,
getThingtime, getThingtime,