Allow background images without protocols to have query hashes/parameters.

Closes #1603.
edit
Benjamin Tan 2016-12-11 18:14:02 +08:00
parent 90b301d0a0
commit 441a26cf90
1 changed files with 1 additions and 1 deletions

View File

@ -859,7 +859,7 @@
if( data.background ) { if( data.background ) {
// Auto-wrap image urls in url(...) // Auto-wrap image urls in url(...)
if( /^(http|file|\/\/)/gi.test( data.background ) || /\.(svg|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 ) ) {
slide.setAttribute( 'data-background-image', data.background ); slide.setAttribute( 'data-background-image', data.background );
} }
else { else {