aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorBenjamin Tan <demoneaux@gmail.com>2018-02-09 20:05:26 +0800
committerBenjamin Tan <demoneaux@gmail.com>2018-02-09 20:05:26 +0800
commitd5f4edeeefa943f0422b8816e3099aa4f534d3b1 (patch)
tree98d1eaf2652cd2041a85a8359860d460332ac494 /js
parent7cd2c9138d2a28f4395799bcfd3e810dfee511ea (diff)
parentf070ba47ecd14fa18777e138e065752fec772c4c (diff)
downloadperl-software-in-gnu-guix-d5f4edeeefa943f0422b8816e3099aa4f534d3b1.tar
perl-software-in-gnu-guix-d5f4edeeefa943f0422b8816e3099aa4f534d3b1.tar.gz
Merge pull request #1836 from RobertBaron/background-whitespace-uri
Allow whitespace on background-images, w3 compliance
Diffstat (limited to 'js')
-rw-r--r--js/reveal.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/reveal.js b/js/reveal.js
index 2439a05..95d1b8c 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -3268,7 +3268,7 @@
// Images
if( backgroundImage ) {
- background.style.backgroundImage = 'url('+ backgroundImage +')';
+ background.style.backgroundImage = 'url('+ encodeURI( backgroundImage ) +')';
}
// Videos
else if ( backgroundVideo && !isSpeakerNotes() ) {