fix variable name is MkMediaList

This commit is contained in:
dakkar 2024-08-06 20:28:50 +01:00
parent 4c409dd6c6
commit 8a37ed668e

View File

@ -178,14 +178,14 @@ onMounted(() => {
textBox.className = 'pswp__alt-text _acrylic';
el.appendChild(textBox);
pwsp.on('change', () => {
if (pwsp.currSlide?.data.comment) {
pswp.on('change', () => {
if (pswp.currSlide?.data.comment) {
textBox.style.display = '';
} else {
textBox.style.display = 'none';
}
textBox.textContent = pwsp.currSlide?.data.comment;
textBox.textContent = pswp.currSlide?.data.comment;
});
},
});