Browse Source

Allow whitespace on background-images, w3 compliance

RobertBaron 7 years ago
parent
commit
f070ba47ec
1 changed files with 1 additions and 1 deletions
  1. 1 1
      js/reveal.js

+ 1 - 1
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() ) {