From 948e14d8a3423ebad7cf057186fda6ad8b4b8b82 Mon Sep 17 00:00:00 2001 From: Kaiserdj Date: Mon, 5 Jul 2021 20:04:19 +0200 Subject: [PATCH] Fix basic api loading --- client.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client.js b/client.js index 5a7cd79..3f96b09 100644 --- a/client.js +++ b/client.js @@ -43,8 +43,8 @@ class Client { this.tray = tools.tray(this); this.config = new Settings(this); this.credentials = new Credentials(this); + this.api = new Api(); this.darkDev; - this.api; if (await update()) { return this; @@ -52,7 +52,6 @@ class Client { if (this.arg.dev) { this.darkDev = new DarkDev(this); - this.api = new Api(); console.log("Settings:"); console.log(settings.getSync()); console.log("Arguments:");