Browse Source
Update Thumbs.js
fix missing thumbnail when filepath contain spaces
pull/54/head
Alexander Shchukin
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/Fancybox/plugins/Thumbs/Thumbs.js
|
|
@ -139,7 +139,7 @@ export class Thumbs { |
|
|
|
|
|
|
|
if (thumb) { |
|
|
|
slides.push({ |
|
|
|
html: `<div class="fancybox__thumb" style="background-image:url(${thumb})"></div>`, |
|
|
|
html: `<div class="fancybox__thumb" style="background-image:url('${thumb}')"></div>`, |
|
|
|
customClass: `has-thumb has-${slide.type || "image"}`, |
|
|
|
}); |
|
|
|
} |
|
|
|