Add the event listener onAvScanResult
Some checks are pending
CodeQL / Analyze (csharp) (push) Waiting to run
CodeQL / Analyze (javascript) (push) Waiting to run
CodeQL / Analyze (python) (push) Waiting to run

This commit is contained in:
Namhyeon Go 2024-09-15 02:54:18 +09:00
parent f7b1461cc5
commit 4144679db7
2 changed files with 6 additions and 1 deletions

3
app.js
View File

@ -629,7 +629,8 @@ function dispatchServiceEvent(name, eventType, w_args, argl) {
screenTime: bind("ServiceScreenTime"),
fileCreated: bind("FileCreated"),
networkConnected: bind("NetworkConnected"),
registryModified: bind("RegistryModified")
registryModified: bind("RegistryModified"),
avScanResult: bind("AvScanResult")
});
} else {
console.error("Could not find", name + ".js");

View File

@ -40,6 +40,9 @@ function onRegistryModified(args) {
return "onRegistryModified recevied. " + args.join(', ');
}
function onAvScanResult(args) {
return "onAvScanResult recevied. " + args.join(', ');
}
exports.main = main;
exports.getDeviceID = getDeviceID;
@ -50,3 +53,4 @@ exports.onServiceScreenTime = onServiceScreenTime;
exports.onFileCreated = onFileCreated;
exports.onNetworkConnected = onNetworkConnected;
exports.onRegistryModified = onRegistryModified;
exports.onAvScanResult = onAvScanResult;