From 922b0037cd343f18424531b7d71765feaeaf84c0 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Tue, 18 Jun 2013 20:21:48 -0400 Subject: adjust background image url detection #453 --- js/reveal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/reveal.js') diff --git a/js/reveal.js b/js/reveal.js index 70c782c..e240a76 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( /\.(png|jpg|jpeg|gif|bmp)$/gi.test( data.background ) ) { + if( /^(http|file|\/\/)/gi.test( data.background ) ) { element.style.backgroundImage = 'url('+ data.background +')'; } else { -- cgit v1.2.3