diff --git a/src/Logic/UIEventSource.ts b/src/Logic/UIEventSource.ts index bf421b509..cca361d18 100644 --- a/src/Logic/UIEventSource.ts +++ b/src/Logic/UIEventSource.ts @@ -9,13 +9,14 @@ export class Stores { const source = new UIEventSource(undefined) function run() { + if(asLong !== undefined && !asLong()){ + return + } source.setData(new Date()) if (Utils.runningFromConsole) { return } - if (asLong === undefined || asLong()) { - window.setTimeout(run, millis) - } + window.setTimeout(run, millis) } run()