summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYannick Bungers2021-01-15 21:25:31 +0100
committerGitHub2021-01-15 21:25:31 +0100
commitd0547a033758df86caa338a94af8e66329281720 (patch)
tree613ee72ad60f819b4ddf77161b66b19b9a3a53b4
parente9d45873440f45d7c06e7ec043062f06b6a586a5 (diff)
parent3eb64cff55fa3a9f88b67cddedb388c6fb02c6b8 (diff)
Merge pull request #735 from hedgedoc/fix/correct-parsing-of-slide-options
Delete slide options that are not defined
Diffstat (limited to '')
-rw-r--r--public/js/slide.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/public/js/slide.js b/public/js/slide.js
index c7852021..e0e831ca 100644
--- a/public/js/slide.js
+++ b/public/js/slide.js
@@ -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