mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-03 01:02:25 -06: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', () => {
|
pswp.on('change', () => {
|
||||||
switch (true) {
|
switch (true) {
|
||||||
case pswp.currSlide.data.parentStatus:
|
case pswp.currSlide.data.parentStatus:
|
||||||
// Link to parent status.
|
// Link to parent status.
|
||||||
el.href = pswp.currSlide.data.parentStatus;
|
el.href = pswp.currSlide.data.parentStatus;
|
||||||
break;
|
break;
|
||||||
case pswp.currSlide.data.element.dataset.pswpParentStatus:
|
case pswp.currSlide.data.element && pswp.currSlide.data.element.dataset.pswpParentStatus:
|
||||||
// Link to parent status.
|
// Link to parent status.
|
||||||
el.href = pswp.currSlide.data.element.dataset.pswpParentStatus;
|
el.href = pswp.currSlide.data.element.dataset.pswpParentStatus;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue