Merge pull request #735 from hedgedoc/fix/correct-parsing-of-slide-options
Delete slide options that are not defined
This commit is contained in:
commit
d0547a0337
@ -124,6 +124,12 @@ var options = {
|
||||
width: meta.slideOptions.width
|
||||
} || {}
|
||||
|
||||
for (const key in options) {
|
||||
if (options.hasOwnProperty(key) && options[key] === undefined) {
|
||||
delete options[key]
|
||||
}
|
||||
}
|
||||
|
||||
const view = $('.reveal')
|
||||
|
||||
// text language
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user