From b455b0281dfe52dd9a01a0687d44895ff45a2d60 Mon Sep 17 00:00:00 2001
From: Hakim El Hattab
Date: Fri, 11 Oct 2013 22:14:50 -0400
Subject: support for svg background images #632

---
 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 9c798f4..21e0006 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -434,7 +434,7 @@ var Reveal = (function(){
 
 			if( data.background ) {
 				// Auto-wrap image urls in url(...)
-				if( /^(http|file|\/\/)/gi.test( data.background ) || /\.(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 ) ) {
 					element.style.backgroundImage = 'url('+ data.background +')';
 				}
 				else {
-- 
cgit v1.2.3