Skip to content

Commit

Permalink
Fix bug that was preventing 360 image pages being displayed in a ligh…
Browse files Browse the repository at this point in the history
…tbox
  • Loading branch information
FayCross committed Jul 2, 2021
1 parent 135cf9e commit 74223dd
Showing 1 changed file with 5 additions and 4 deletions.
Expand Up @@ -60,8 +60,8 @@
// if this has been triggered from window.resize() called manually for video sizing then skip all this
if (videoResize == true) {

if (parent.window.$.featherlight.current()) {
parent.window.$.featherlight.current().close();
if (window.$.featherlight.current() != null) {
window.$.featherlight.current().close();
}

var $panel = $("#pageContents .panel");
Expand Down Expand Up @@ -856,7 +856,9 @@
for (var i=0; i<lockedHs.length; i++) {
if (lockedHs[i].locked == true && lockedHs[i].id == $hs.attr('id')) {
media360.unlockHs(i);
parent.window.$.featherlight.current().close();
if (window.$.featherlight.current() != null) {
window.$.featherlight.current().close();
}
break;
}
}
Expand Down Expand Up @@ -911,7 +913,6 @@
}

this.mediaMetadata = function($video, wh) {

$video.data({
width: wh[0],
height: wh[1]
Expand Down

0 comments on commit 74223dd

Please sign in to comment.