While creating new Window by passing Id crashes the electron app
sameer2248 opened this issue · comments
SaM^ commented
Peter Schmidt commented
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