broader image url detect (closes #500)
This commit is contained in:
parent
7e8ee5340e
commit
e51c0fc3ce
2 changed files with 3 additions and 3 deletions
|
@ -283,7 +283,7 @@ var Reveal = (function(){
|
||||||
|
|
||||||
if( data.background ) {
|
if( data.background ) {
|
||||||
// Auto-wrap image urls in url(...)
|
// 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 +')';
|
element.style.backgroundImage = 'url('+ data.background +')';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
4
js/reveal.min.js
vendored
4
js/reveal.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue