mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
pad: Always pass strings to pad option callbacks
This commit is contained in:
parent
8c857a85ac
commit
f8b4189bc4
1 changed files with 3 additions and 2 deletions
|
@ -145,9 +145,10 @@ const getParameters = [
|
|||
const getParams = () => {
|
||||
// Tries server enforced options first..
|
||||
for (const setting of getParameters) {
|
||||
const value = clientVars.padOptions[setting.name];
|
||||
let value = clientVars.padOptions[setting.name];
|
||||
if (value == null) continue;
|
||||
if (value.toString() === setting.checkVal) {
|
||||
value = value.toString();
|
||||
if (value === setting.checkVal) {
|
||||
setting.callback(value);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue