From f2f05069fcc1f6c8dd103e2dfbdb82d9323e0d17 Mon Sep 17 00:00:00 2001 From: Lucas Legname Date: Tue, 1 Apr 2014 00:08:34 +0200 Subject: [PATCH] Logo filename bug has been fixed. --- src/janin.currency.js | 2 +- src/ninja.paperwallet.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/janin.currency.js b/src/janin.currency.js index f560227..4dcf062 100644 --- a/src/janin.currency.js +++ b/src/janin.currency.js @@ -36,7 +36,7 @@ janin.currency = { useCurrency: function(index) { janin.selectedCurrency = janin.currencies[index]; - var coinImgUrl = "logos/" + janin.selectedCurrency.name + ".png"; + var coinImgUrl = "logos/" + janin.selectedCurrency.name.toLowerCase() + ".png"; document.getElementById("coinLogoImg").src = coinImgUrl; // Regenerate a new wallet when not expensive diff --git a/src/ninja.paperwallet.js b/src/ninja.paperwallet.js index 5ddf6c0..5073fec 100644 --- a/src/ninja.paperwallet.js +++ b/src/ninja.paperwallet.js @@ -133,8 +133,8 @@ ninja.wallets.paperwallet = { if (ninja.wallets.paperwallet.encrypt) keyelement = 'btcencryptedkey' - var coinImgUrl = "logos/" + janin.selectedCurrency.name + ".png"; - var walletBackgroundUrl = "wallets/" + janin.selectedCurrency.name + ".png"; + var coinImgUrl = "logos/" + janin.selectedCurrency.name.toLowerCase() + ".png"; + var walletBackgroundUrl = "wallets/" + janin.selectedCurrency.name.toLowerCase() + ".png"; var walletHtml = "
currency_logo
" +