aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2017-01-23 11:11:28 +0100
committerGitHub <noreply@github.com>2017-01-23 11:11:28 +0100
commitcb16f27dd364b5da8820003200d786070a5d702d (patch)
treefd0c8c3856009dde56e86272a00857f1ea7eb746 /js
parente8164c13923b65c60cca122aeab6e61cb5377e80 (diff)
parent441a26cf9060b934a26c362ecbb0f6e3fa6701ea (diff)
downloadperl-software-in-gnu-guix-cb16f27dd364b5da8820003200d786070a5d702d.tar
perl-software-in-gnu-guix-cb16f27dd364b5da8820003200d786070a5d702d.tar.gz
Merge pull request #1768 from demoneaux/background-images
Allow background images without protocols to have query hashes/parameters.
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 7fad2b1..6a31424 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -859,7 +859,7 @@
if( data.background ) {
// Auto-wrap image urls in url(...)
- if( /^(http|file|\/\/)/gi.test( data.background ) || /\.(svg|png|jpg|jpeg|gif|bmp)$/gi.test( data.background ) ) {
+ if( /^(http|file|\/\/)/gi.test( data.background ) || /\.(svg|png|jpg|jpeg|gif|bmp)([?#]|$)/gi.test( data.background ) ) {
slide.setAttribute( 'data-background-image', data.background );
}
else {