forked from GithubMirrors/cardconjurer
Update creator-23.js
This commit is contained in:
@@ -158,7 +158,7 @@ function getElementIndex(element) {
|
|||||||
return Array.prototype.indexOf.call(element.parentElement.children, element);
|
return Array.prototype.indexOf.call(element.parentElement.children, element);
|
||||||
}
|
}
|
||||||
function getCardName() {
|
function getCardName() {
|
||||||
if (card.text == undefined) {
|
if (card.text == undefined || card.text.title == undefined) {
|
||||||
return 'unnamed';
|
return 'unnamed';
|
||||||
}
|
}
|
||||||
var imageName = card.text.title.text || 'unnamed';
|
var imageName = card.text.title.text || 'unnamed';
|
||||||
|
Reference in New Issue
Block a user