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

View file

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