aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorBenjamin Tan <demoneaux@gmail.com>2016-12-11 18:14:02 +0800
committerBenjamin Tan <demoneaux@gmail.com>2016-12-11 18:14:02 +0800
commit441a26cf9060b934a26c362ecbb0f6e3fa6701ea (patch)
tree9e653855f35f76982c8d9b6a8cf9ffbccd400495 /js
parent90b301d0a03b8b23ce755c31ec6dac15cf69dc49 (diff)
downloadfreenode-live-2017-presentation-441a26cf9060b934a26c362ecbb0f6e3fa6701ea.tar
freenode-live-2017-presentation-441a26cf9060b934a26c362ecbb0f6e3fa6701ea.tar.gz
Allow background images without protocols to have query hashes/parameters.
Closes #1603.
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 28aa400..695b26b 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 {