From f070ba47ecd14fa18777e138e065752fec772c4c Mon Sep 17 00:00:00 2001 From: RobertBaron Date: Thu, 23 Feb 2017 19:03:15 -0600 Subject: Allow whitespace on background-images, w3 compliance --- js/reveal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js') diff --git a/js/reveal.js b/js/reveal.js index 65560a6..841cbb6 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -3085,7 +3085,7 @@ // Images if( backgroundImage ) { - background.style.backgroundImage = 'url('+ backgroundImage +')'; + background.style.backgroundImage = 'url('+ encodeURI(backgroundImage) +')'; } // Videos else if ( backgroundVideo && !isSpeakerNotes() ) { -- cgit v1.2.3