Avoid null Hugo defaults breaking JS initialization

This commit is contained in:
dzello 2018-07-03 00:12:32 +02:00
parent e79f999528
commit 56be3a2a42
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@
var revealHugoDefaults = JSON.parse(document.getElementById('reveal-hugo-defaults').innerHTML);
// See all options - https://github.com/hakimel/reveal.js#configuration
var options = Object.assign(
var options = Object.assign({},
camelize(revealHugoDefaults),
camelize(revealHugoSiteParams),
camelize(revealHugoPageParams),