mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-05-09 06:06:13 +02:00
pad: Ignore null values in padOptions from settings.json
This commit is contained in:
parent
f4257a28ba
commit
7ff71cd41e
@ -146,6 +146,7 @@ const getParams = () => {
|
||||
// Tries server enforced options first..
|
||||
for (const setting of getParameters) {
|
||||
const value = clientVars.padOptions[setting.name];
|
||||
if (value == null) continue;
|
||||
if (value.toString() === setting.checkVal) {
|
||||
setting.callback(value);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user