From 32527f7716ef691e237dd47f6299f61f707c9fd9 Mon Sep 17 00:00:00 2001 From: Mathew <77069472+Matte22@users.noreply.github.com> Date: Tue, 5 Mar 2024 10:24:41 -0500 Subject: [PATCH] fix: accept cklb files when in event mode. (#101) --- lib/events.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/events.js b/lib/events.js index d9f1855..08cdcb8 100644 --- a/lib/events.js +++ b/lib/events.js @@ -34,7 +34,7 @@ export default function startFsEventWatcher () { watcher.on('add', file => { // chokidar glob argument doesn't work for UNC Windows, so we check file extension here const extension = file.substring(file.lastIndexOf(".") + 1) - if (extension.toLowerCase() === 'ckl' || extension.toLowerCase() === 'xml') { + if (extension.toLowerCase() === 'ckl' || extension.toLowerCase() === 'xml' || extension.toLowerCase() === 'cklb') { logger.info({ component: component, message: 'file system event', @@ -45,7 +45,3 @@ export default function startFsEventWatcher () { } }) } - - - -