active-window-listener
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -19,8 +19,5 @@ | ||
changed(cb) { | ||
this.eventEmitter.on("changed", data => { | ||
if (!data) return cb(undefined); | ||
cb({ | ||
title: data.getTitle(), | ||
pid: data.processId, | ||
}) | ||
this.eventEmitter.on("changed", window => { | ||
if (!window) return cb(undefined); | ||
cb(window) | ||
}) | ||
@@ -27,0 +24,0 @@ } |
{ | ||
"name": "active-window-listener", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Listen to active windows by specifying them", | ||
@@ -5,0 +5,0 @@ "main": "main.js", |
@@ -16,9 +16,4 @@ # Active Window Listener | ||
``` | ||
This should output an object: | ||
```json | ||
{ | ||
"title": "#Epic - Discord", | ||
"pid": 1234, | ||
} | ||
``` | ||
This should output an object of Window Class properties. See the package used below to view the methods. | ||
There is also a function to get windows that are opened. I needed to filter out some of the components from the "Windows" Directory in order to get the proper list. | ||
@@ -25,0 +20,0 @@ ```js |
4648
71
29