Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

While creating new Window by passing Id crashes the electron app #60

Open
sameer2248 opened this issue May 27, 2022 · 1 comment
Open

Comments

@sameer2248
Copy link

Bug description

When creating new Window by passing Id crashes the electron app
To Reproduce

Expected behavior

Screenshots

Screenshot 2022-05-24 at 4 49 14 PM

Screenshot 2022-05-24 at 4 50 49 PM

Details:

  • Operating System: Mac os Monterey
  • node-window-manager version: 2.2.4
  • Last known working node-window-manager version: 2.2.4

Additional context

@pzrq
Copy link

pzrq commented May 31, 2022

It seems this may be a specific case caused by passing the screen ID of the new Monterey status indicator dot into some TypeScript like:

import { Window } from 'node-window-manager';

const demo = (windowId: string) => {
  const parsedWindowId = parseInt(windowId.split(':')[1], 10);
  const window = new Window(parsedWindowId);
  return window.getBounds();
}
// EDIT: It might also be something else, just not sure - the legacy codebase I'm on can be hard to follow along with

https://www.macrumors.com/how-to/menu-bar-dot-explanation/

Possibly related #55

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants