Browse Source

adjust background image url detection #453

embed
Hakim El Hattab 12 years ago
parent
commit
922b0037cd
  1. 2
      js/reveal.js
  2. 4
      js/reveal.min.js

2
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 {

4
js/reveal.min.js

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save