From 884fc42d6fa9b194d5d7709147b76248578a9c87 Mon Sep 17 00:00:00 2001 From: Luis Mendoza Date: Sun, 10 Jul 2022 01:57:02 +0200 Subject: [PATCH] prefix img path fixed --- js/modules/calculator/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/modules/calculator/index.js b/js/modules/calculator/index.js index 8daaa62..de5af03 100644 --- a/js/modules/calculator/index.js +++ b/js/modules/calculator/index.js @@ -59,7 +59,7 @@ export class Calculator { handleCoinIcon () { let coin = blockReward[this.DOMElements.selectBlockReward.value] - let prefix = window.location.pathname.split('/').filter(s => s && s !== 'index.html').pop() === 'es'? '../' : '.' + let prefix = window.location.pathname.split('/').filter(s => s && s !== 'index.html').pop() === 'es'? '..' : '.' this.DOMElements.coinIcon.src = prefix + "/img/" + coin.icon this.DOMElements.coinIcon.alt = coin.name + " icon"