Id of the window this code is running in, as the platform assigns them. Set from the URL search
params in the renderer process, and undefined outside a window — which is how code shared
with the extension host tells the two apart, so test it against undefined rather than for
truthiness.
The same id names this window everywhere else: in platform.getWindows, in a move's
targetWindowId, and in main. No window is ever given an id another window has had, in this
run of the app or any earlier one on the same profile.
Id of the window this code is running in, as the platform assigns them. Set from the URL search params in the renderer process, and
undefinedoutside a window — which is how code shared with the extension host tells the two apart, so test it againstundefinedrather than for truthiness.The same id names this window everywhere else: in
platform.getWindows, in a move'stargetWindowId, and in main. No window is ever given an id another window has had, in this run of the app or any earlier one on the same profile.