diff --git a/README.md b/README.md index 652a7cc..aa624cc 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/src/c++/window.cpp b/src/c++/window.cpp index 2bb46f1..aa2edee 100644 --- a/src/c++/window.cpp +++ b/src/c++/window.cpp @@ -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) {