From 535b64e0e38c8ba6b83311a307df743eb6cc61f7 Mon Sep 17 00:00:00 2001 From: Peter Daniel Date: Thu, 29 Jun 2023 13:03:39 +0100 Subject: [PATCH] add getcurrenttimer on config update --- index.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 710a157..94bc061 100644 --- a/index.js +++ b/index.js @@ -87,7 +87,13 @@ class toggltrack extends InstanceBase { this.config = config this.gotOptions.headers = this.auth() - this.getWorkspace() + + if (this.gotOptions.headers != null) { + this.getWorkspace().then( + this.getCurrentTimer() + ) + } + this.updateActions() this.updateVariables() }