Network menu design updates.

This commit is contained in:
softsimon
2020-07-16 13:37:28 +07:00
parent e6b5e94631
commit f7dd46c6c7
5 changed files with 23 additions and 25 deletions

View File

@@ -27,12 +27,12 @@ class Bisq {
this.loadBisqDumpFile();
let fsWait: NodeJS.Timeout | null = null;
fs.watch(config.BSQ_BLOCKS_DATA_PATH, (event: string, filename: string) => {
fs.watch(config.BSQ_BLOCKS_DATA_PATH, () => {
if (fsWait) {
clearTimeout(fsWait);
}
fsWait = setTimeout(() => {
console.log(`${filename} file change detected.`);
console.log(`Change detected in the Bisq data folder.`);
this.loadBisqDumpFile();
}, 1000);
});