Fixing NREs in card display code
This commit is contained in:
@@ -244,6 +244,8 @@ class AutoZoom {
|
||||
const refCard = target.closest(".card");
|
||||
this.baseImageDiv = refCard[0];
|
||||
var card = refCard.data("card");
|
||||
if(card == null)
|
||||
return;
|
||||
|
||||
// don't show preview image if card is animating
|
||||
if (!$(this.baseImageDiv).hasClass('card-animating')) {
|
||||
|
||||
@@ -615,6 +615,7 @@ class Card {
|
||||
|
||||
//Used for ephemeral card displays such as event display or the "affected by card" effect
|
||||
static CreateSimpleCardDiv(image, testingText, foil, incomplete, borderWidth) {
|
||||
var foilPresentation = Card.getFoilPresentation();
|
||||
var cardDiv = $("<div class='card'><img src='" + image + "' width='100%' height='100%'></div>");
|
||||
|
||||
if (incomplete) {
|
||||
|
||||
Reference in New Issue
Block a user