From 50465e4a6c3641cf80e7cb7b14f4226ae4b62533 Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Sun, 10 Nov 2024 15:52:20 +0100 Subject: [PATCH] fix: initialize the SVR.JS Core configuration only if configuration is supplied --- src/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.js b/src/core.js index d4dad72..15068b0 100644 --- a/src/core.js +++ b/src/core.js @@ -625,7 +625,7 @@ function requestHandler(req, res, next) { } function init(config) { - coreConfig = config; + if (config) coreConfig = config; return requestHandler; }