support for svg background images #632

This commit is contained in:
Hakim El Hattab committed 2013-10-11 22:14:50 -04:00
1 parent 942724238f
commit b455b0281d
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -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 {