mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-12 12:47:29 -06:00
tweaks
This commit is contained in:
parent
3089ac3780
commit
befa318065
6 changed files with 43 additions and 18 deletions
|
|
@ -144,11 +144,12 @@ lightbox.on('uiRegister', function() {
|
|||
el.setAttribute('rel', 'noopener');
|
||||
pswp.on('change', () => {
|
||||
switch (true) {
|
||||
case pswp.currSlide.data.parentStatus:
|
||||
case pswp.currSlide.data.parentStatus !== undefined:
|
||||
// Link to parent status.
|
||||
el.href = pswp.currSlide.data.parentStatus;
|
||||
break;
|
||||
case pswp.currSlide.data.element && pswp.currSlide.data.element.dataset.pswpParentStatus:
|
||||
case pswp.currSlide.data.element !== undefined &&
|
||||
pswp.currSlide.data.element.dataset.pswpParentStatus !== undefined:
|
||||
// Link to parent status.
|
||||
el.href = pswp.currSlide.data.element.dataset.pswpParentStatus;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue