mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-05-08 05:36:09 +02:00
pad: Always pass strings to pad option callbacks
This commit is contained in:
parent
8c857a85ac
commit
f8b4189bc4
@ -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…
x
Reference in New Issue
Block a user