Skip to content

Commit

Permalink
Renamed property returned in getProcessInfo
Browse files Browse the repository at this point in the history
`window_text` has been renamed to `windowText`
  • Loading branch information
pacop committed Sep 3, 2020
1 parent 1657941 commit 7fa61b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Retrieves an instance of [Window](#class-window) with the specified ancestor. It
Returns an object with information of the process who owns the window.

The object has the following properties.
* `window_text` `{string}` Window's title bar.
* `windowText` `{string}` Window's title bar.
* `pid` `{number}` PID of the process who owns the window.
* `path` `{string}` Process's path who owns the window.

Expand Down
2 changes: 1 addition & 1 deletion src/c++/window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ Napi::Value Window::GetProcessInfo(const Napi::CallbackInfo& info) {
char wndTitle[256];
GetWindowText(this->_identifier, wndTitle, sizeof(wndTitle));

result.Set("window_text", Napi::String::New(info.Env(), wndTitle));
result.Set("windowText", Napi::String::New(info.Env(), wndTitle));

// Comprobamos que tenemos acceso para consultar el proceso, y que el puntero esta bien
if (NULL != hProcess) {
Expand Down

0 comments on commit 7fa61b0

Please sign in to comment.