mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-01 00:32:26 -05:00
fix little error
This commit is contained in:
parent
bfee7041c0
commit
3089ac3780
1 changed files with 3 additions and 3 deletions
|
|
@ -145,11 +145,11 @@ lightbox.on('uiRegister', function() {
|
|||
pswp.on('change', () => {
|
||||
switch (true) {
|
||||
case pswp.currSlide.data.parentStatus:
|
||||
// Link to parent status.
|
||||
// Link to parent status.
|
||||
el.href = pswp.currSlide.data.parentStatus;
|
||||
break;
|
||||
case pswp.currSlide.data.element.dataset.pswpParentStatus:
|
||||
// Link to parent status.
|
||||
case pswp.currSlide.data.element && pswp.currSlide.data.element.dataset.pswpParentStatus:
|
||||
// Link to parent status.
|
||||
el.href = pswp.currSlide.data.element.dataset.pswpParentStatus;
|
||||
break;
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue