Adding sync external assets feature.

This commit is contained in:
softsimon committed 2021-12-21 02:00:50 +04:00
1 parent 4a56fb817e
commit 401ba3e9e7
6 files changed
+51 -7

No files matched your search

+4 -4
View File
@@ -6,10 +6,10 @@ class Icons {
private static FILE_NAME = './icons.json';
private iconIds: string[] = [];
private icons: { [assetId: string]: string; } = {};
constructor() {
if (config.MEMPOOL.NETWORK !== 'liquid') {
return;
}
constructor() {}
public loadIcons() {
if (!fs.existsSync(Icons.FILE_NAME)) {
logger.warn(`${Icons.FILE_NAME} does not exist. No Liquid icons loaded.`);
return;