Skip to content

Commit

Permalink
Merge pull request #1046 from OWASP/make-A-white-backround
Browse files Browse the repository at this point in the history
make Ass have white background.
  • Loading branch information
sydseter authored Feb 13, 2025
2 parents 80ce9b8 + 7897e2f commit 1d89198
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cornucopia.owasp.org/src/lib/components/cardPreview.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
return cardColor?.get(suit) ?? "";
}
function getRoyalSuitColor(suit : string, id: string, value: string)
function getRoyalSuitColor(suit: string, id: string, value: string)
{
if (!cardColor?.get(suit)) return 'white';
if (!['J', 'Q', 'K', 'A', 'B'].includes(value)) return 'white';
if (id != 'WC' && !['J', 'Q', 'K'].includes(value)) return 'white';
suit = cardColor?.get(suit) + '-royal';
if (['CRM', 'CM', 'WC'].includes(id)) suit = suit + '-mobile';
return suit;
Expand Down

0 comments on commit 1d89198

Please sign in to comment.