aboutsummaryrefslogtreecommitdiff
path: root/js/reveal.js
diff options
context:
space:
mode:
authorHakim El Hattab <hakim@squarespace.com>2013-06-20 16:46:26 -0400
committerHakim El Hattab <hakim@squarespace.com>2013-06-20 16:46:26 -0400
commite51c0fc3ce3568eb325b87fe60ca7bdd07861150 (patch)
tree3aa6b5bec29132c22afa552beb851c8f785daa16 /js/reveal.js
parent7e8ee5340e6615e8dce9c5b0bf0af8dcf699e4fa (diff)
downloadfosdem-2018-presentation-e51c0fc3ce3568eb325b87fe60ca7bdd07861150.tar
fosdem-2018-presentation-e51c0fc3ce3568eb325b87fe60ca7bdd07861150.tar.gz
broader image url detect (closes #500)
Diffstat (limited to 'js/reveal.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 e240a76..e95ec74 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -283,7 +283,7 @@ var Reveal = (function(){
if( data.background ) {
// Auto-wrap image urls in url(...)
- if( /^(http|file|\/\/)/gi.test( data.background ) ) {
+ if( /^(http|file|\/\/)/gi.test( data.background ) || /\.(png|jpg|jpeg|gif|bmp)$/gi.test( data.background ) ) {
element.style.backgroundImage = 'url('+ data.background +')';
}
else {