pad: Always pass strings to pad option callbacks

pull/5313/head
Richard Hansen 2021-12-04 22:35:40 -05:00
parent 8c857a85ac
commit f8b4189bc4
1 changed files with 3 additions and 2 deletions

View File

@ -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);
} }
} }