diff options
Diffstat (limited to 'src/modules/is_running.js')
-rw-r--r-- | src/modules/is_running.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/modules/is_running.js b/src/modules/is_running.js index 1cfdc1d..b9fbde1 100644 --- a/src/modules/is_running.js +++ b/src/modules/is_running.js @@ -1,7 +1,12 @@ +const win = require("../win"); const exec = require("child_process").exec; let is_running = {}; +setInterval(async () => { + win().send("is-running", await is_running.game()); +}, 1000) + // a simple function that checks whether any of a given set of process // names are running, you can either input a string or an Array of // strings |