Skip to content

Commit 3916e5a

Browse files
committed
fix: try to fix getWindows issue
1 parent a7eacf1 commit 3916e5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/macos.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ AXUIElementRef getAXWindow(int pid, int handle) {
5555
auto arr = Napi::Array::New(env, vec.size());
5656

5757
for (int i = 0; i < vec.size(); i++) {
58-
arr[i] = vec[i];
58+
arr.Set(i, vec[i]);
5959
}
6060

6161
return arr;

0 commit comments

Comments
 (0)