Browse Source

Update Thumbs.js

fix missing thumbnail when filepath contain spaces
pull/54/head
Alexander Shchukin 3 years ago
committed by GitHub
parent
commit
92ba51302a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Fancybox/plugins/Thumbs/Thumbs.js

2
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"}`,
});
}

Loading…
Cancel
Save