adjust background image url detection #453
This commit is contained in:
1 parent
ed81faa467
commit
922b0037cd
2 files changed
+3
-3
No files matched your search
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user