Skip to content
Snippets Groups Projects
Commit 922b0037 authored by Hakim El Hattab's avatar Hakim El Hattab
Browse files

adjust background image url detection #453

parent ed81faa4
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment