Remove unnecessary cast of "enableCorsProxy"

This commit is contained in:
Cohee 2023-12-07 00:57:23 +02:00
parent 6a516bf3eb
commit cf256a547c

View File

@ -306,7 +306,7 @@ app.use(function (req, res, next) {
next(); next();
}); });
if (getConfigValue('enableCorsProxy', false) === true || cliArguments.corsProxy) { if (getConfigValue('enableCorsProxy', false) || cliArguments.corsProxy) {
const bodyParser = require('body-parser'); const bodyParser = require('body-parser');
app.use(bodyParser.json()); app.use(bodyParser.json());
console.log('Enabling CORS proxy'); console.log('Enabling CORS proxy');