adjust background image url detection #453

This commit is contained in:
Hakim El Hattab 2013-06-18 20:21:48 -04:00
parent ed81faa467
commit 922b0037cd
2 changed files with 3 additions and 3 deletions

View file

@ -283,7 +283,7 @@ var Reveal = (function(){
if( data.background ) {
// Auto-wrap image urls in url(...)
if( /\.(png|jpg|jpeg|gif|bmp)$/gi.test( data.background ) ) {
if( /^(http|file|\/\/)/gi.test( data.background ) ) {
element.style.backgroundImage = 'url('+ data.background +')';
}
else {

4
js/reveal.min.js vendored

File diff suppressed because one or more lines are too long