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

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