1
0
Fork 0
forked from svrjs/svrjs

fix: initialize the SVR.JS Core configuration only if configuration is supplied

This commit is contained in:
Dorian Niemiec 2024-11-10 15:52:20 +01:00
parent c9bbd0e202
commit 50465e4a6c

View file

@ -625,7 +625,7 @@ function requestHandler(req, res, next) {
} }
function init(config) { function init(config) {
coreConfig = config; if (config) coreConfig = config;
return requestHandler; return requestHandler;
} }