pad: Ignore `null` values in `padOptions` from `settings.json`
parent
f4257a28ba
commit
7ff71cd41e
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue