Regression: Fix wrong template on photoswipe (#19575)

pull/19577/head^2
Martin Schoeler 5 years ago committed by GitHub
parent f299468268
commit b582977ecc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/ui/client/views/app/photoswipe.js

@ -7,7 +7,7 @@ Meteor.startup(() => {
let currentGallery = null;
const initGallery = async (items, options) => {
Blaze.render(Template.photoswipeContent, document.body);
const [PhotoSwipeImport, PhotoSwipeUI_DefaultImport] = await Promise.all([import('photoswipe'), import('photoswipe/dist/photoswipe-ui-default'), import('photoswipe/dist/photoswipe.css'), import('./photoswipe-content.html')]);
const [PhotoSwipeImport, PhotoSwipeUI_DefaultImport] = await Promise.all([import('photoswipe'), import('photoswipe/dist/photoswipe-ui-default'), import('photoswipe/dist/photoswipe.css')]);
if (!currentGallery) {
const PhotoSwipe = PhotoSwipeImport.default;
const PhotoSwipeUI_Default = PhotoSwipeUI_DefaultImport.default;

Loading…
Cancel
Save