diff options
-rw-r--r-- | src/content/dependencies/index.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/content/dependencies/index.js b/src/content/dependencies/index.js index f82062f7..d5ac082f 100644 --- a/src/content/dependencies/index.js +++ b/src/content/dependencies/index.js @@ -156,6 +156,11 @@ export function watchContentDependencies({ break main; } + if (logging && contentDependencies[functionName]) { + const timestamp = new Date().toLocaleString('en-US', {timeStyle: 'medium'}); + console.log(color.green(`[${timestamp}] Updated ${functionName}`)); + } + contentDependencies[functionName] = fn; events.emit('update', functionName); |