diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2017-01-23 11:11:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-23 11:11:28 +0100 |
commit | cb16f27dd364b5da8820003200d786070a5d702d (patch) | |
tree | fd0c8c3856009dde56e86272a00857f1ea7eb746 /js/reveal.js | |
parent | e8164c13923b65c60cca122aeab6e61cb5377e80 (diff) | |
parent | 441a26cf9060b934a26c362ecbb0f6e3fa6701ea (diff) | |
download | fosdem-2018-presentation-cb16f27dd364b5da8820003200d786070a5d702d.tar fosdem-2018-presentation-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/reveal.js')
-rw-r--r-- | js/reveal.js | 2 |
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 { |