From 7f6c58525c9e487e8c1ebcae3296aa3ba05d8e18 Mon Sep 17 00:00:00 2001 From: Joe Uhren Date: Sat, 6 May 2023 18:16:47 -0600 Subject: [PATCH] Better quote support for coin name and symbol -Fixed some javascript errors with using quotes in the coin.name and coin.symbol settings which effectively broke certain functions in the explorer --- views/layout.pug | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views/layout.pug b/views/layout.pug index 49e2912..d5c6df8 100644 --- a/views/layout.pug +++ b/views/layout.pug @@ -676,7 +676,7 @@ html(lang='en') } function getCoinSupplyPanel() { var supplyType=''; - return '
#{settings.locale.ex_supply} (#{settings.coin.symbol})
'; + return `
#{settings.locale.ex_supply} (${"#{settings.coin.symbol}".replace(/"/g, '"')})
`; } function getPricePanel() { var priceType=''; @@ -686,7 +686,7 @@ html(lang='en') return '
Market Cap (#{settings.markets_page.default_exchange.trading_pair.split('/')[1]})
'; } function getLogoPanel() { - return '#{settings.coin.name} Logo'; + return `${`; } function getActivePanel(panelName) { var sReturn='';