From f0f79057824a6a33059226e2c4aecd50e8872828 Mon Sep 17 00:00:00 2001 From: Jorge Schrauwen Date: Thu, 23 Apr 2020 22:02:00 +0200 Subject: [PATCH] Also pass settings to Extensions (#3410) * Also pass settings to Extensions * Swap order of settings and logger --- lib/controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/controller.js b/lib/controller.js index 3b93b910..ea0febd8 100644 --- a/lib/controller.js +++ b/lib/controller.js @@ -77,7 +77,7 @@ class Controller { const extensions = fs.readdirSync(extensionPath).filter((f) => f.endsWith('.js')); for (const extension of extensions) { const Extension = require(path.join(extensionPath, extension.split('.')[0])); - this.extensions.push(new Extension(...args, logger)); + this.extensions.push(new Extension(...args, settings, logger)); } } }