pad: Ignore `null` values in `padOptions` from `settings.json`

pull/5313/head
Richard Hansen 2021-12-04 21:08:17 -05:00
parent f4257a28ba
commit 7ff71cd41e
1 changed files with 1 additions and 0 deletions

View File

@ -146,6 +146,7 @@ const getParams = () => {
// Tries server enforced options first.. // Tries server enforced options first..
for (const setting of getParameters) { for (const setting of getParameters) {
const value = clientVars.padOptions[setting.name]; const value = clientVars.padOptions[setting.name];
if (value == null) continue;
if (value.toString() === setting.checkVal) { if (value.toString() === setting.checkVal) {
setting.callback(value); setting.callback(value);
} }