Merge pull request #735 from hedgedoc/fix/correct-parsing-of-slide-options

Delete slide options that are not defined
This commit is contained in:
Yannick Bungers 2021-01-15 21:25:31 +01:00 committed by GitHub
commit d0547a0337
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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