mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-04-15 15:36:30 +00:00
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
1 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue