Skip to content

Commit

Permalink
Fix error if number is specified but set is not
Browse files Browse the repository at this point in the history
  • Loading branch information
NilsEnevoldsen committed Sep 27, 2018
1 parent e841d71 commit 62f028d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/ext.scryfallLinks.tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ $( function () {
target = thisPopper._reference,
jsonURI = new URL( 'https://api.scryfall.com/cards/named' );
var rotationClass = 'ext-scryfall-rotate-0';
if ( typeof target.dataset.cardNumber === 'undefined' || target.dataset.cardNumber === '' ) {
if ( typeof target.dataset.cardSet === 'undefined' || typeof target.dataset.cardNumber === 'undefined' || target.dataset.cardNumber === '' ) {
jsonURI.searchParams.set( 'exact', target.dataset.cardName );
if ( typeof target.dataset.cardSet !== 'undefined' ) {
jsonURI.searchParams.set( 'set', target.dataset.cardSet );
Expand Down

0 comments on commit 62f028d

Please sign in to comment.