mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-19 01:35:18 -04: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
|
width: meta.slideOptions.width
|
||||||
} || {}
|
} || {}
|
||||||
|
|
||||||
|
for (const key in options) {
|
||||||
|
if (options.hasOwnProperty(key) && options[key] === undefined) {
|
||||||
|
delete options[key]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const view = $('.reveal')
|
const view = $('.reveal')
|
||||||
|
|
||||||
// text language
|
// text language
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue