mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-25 18:06:15 -04:00
pad: Ignore null
values in padOptions
from settings.json
This commit is contained in:
parent
f4257a28ba
commit
7ff71cd41e
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue