Say I have a multi-window app, and there are a number of different
types of windows (eg an “editor” and a “preview” etc).
I want to be able to call
BrowserWindow.getAllWindows() and filter down on just a certain type of window.
What’s the correct way to distinguish which window is of which type. I can’t see an obvious place in the API to dump meta-data tags about a certain window, but I assume it must be possible to determine what-is-what, somehow.
Rather than hack this, is there a correct way to go about this kind of thing. Or am I thinking about this wrong?