mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 01:36:29 -05:00
Delete slide options that are not defined
Reveal.js doesn't set the default value of an option in the provided config object if the key is set with "undefined" as value. This leads to a broken slide mode, because some critical settings are missing. Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
This commit is contained in:
parent
e9d4587344
commit
3eb64cff55
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…
Reference in a new issue