pad: Always pass strings to pad option callbacks
parent
8c857a85ac
commit
f8b4189bc4
|
@ -145,9 +145,10 @@ const getParameters = [
|
||||||
const getParams = () => {
|
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];
|
let value = clientVars.padOptions[setting.name];
|
||||||
if (value == null) continue;
|
if (value == null) continue;
|
||||||
if (value.toString() === setting.checkVal) {
|
value = value.toString();
|
||||||
|
if (value === setting.checkVal) {
|
||||||
setting.callback(value);
|
setting.callback(value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue