summaryrefslogtreecommitdiff
path: root/public/js
diff options
context:
space:
mode:
authorTilman Vatteroth2021-01-15 21:18:23 +0100
committerTilman Vatteroth2021-01-15 21:18:23 +0100
commit3eb64cff55fa3a9f88b67cddedb388c6fb02c6b8 (patch)
tree613ee72ad60f819b4ddf77161b66b19b9a3a53b4 /public/js
parente9d45873440f45d7c06e7ec043062f06b6a586a5 (diff)
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>
Diffstat (limited to 'public/js')
-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