', outlineID: 'pswp__icn-download' }, onInit: (el, pswp) => { el.setAttribute('download', ''); el.setAttribute('target', '_blank'); el.setAttribute('rel', 'noopener'); pswp.on('change', () => { el.href = pswp.currSlide.data.element.dataset.download; }); } }); }); lightbox.init();