diff --git a/backend/src/index.ts b/backend/src/index.ts index 3a8449131..aa71f067c 100644 --- a/backend/src/index.ts +++ b/backend/src/index.ts @@ -155,11 +155,17 @@ class Server { } if (Common.isLiquid()) { - try { - icons.loadIcons(); - } catch (e) { - logger.err('Cannot load liquid icons. Ignoring. Reason: ' + (e instanceof Error ? e.message : e)); - } + const refreshIcons = () => { + try { + icons.loadIcons(); + } catch (e) { + logger.err('Cannot load liquid icons. Ignoring. Reason: ' + (e instanceof Error ? e.message : e)); + } + }; + // Run once on startup. + refreshIcons(); + // Matches electrs hard coded refresh interval for asset db. + setInterval(refreshIcons, 15000); } priceUpdater.$run();