1
0
mirror of https://github.com/hakimel/reveal.js.git synced 2025-08-06 06:38:08 +02:00

Allow whitespace on background-images, w3 compliance

This commit is contained in:
RobertBaron
2017-02-23 19:03:15 -06:00
parent b143e5976b
commit f070ba47ec

View File

@@ -3085,7 +3085,7 @@
// Images // Images
if( backgroundImage ) { if( backgroundImage ) {
background.style.backgroundImage = 'url('+ backgroundImage +')'; background.style.backgroundImage = 'url('+ encodeURI(backgroundImage) +')';
} }
// Videos // Videos
else if ( backgroundVideo && !isSpeakerNotes() ) { else if ( backgroundVideo && !isSpeakerNotes() ) {