INNER CODE UNIT · TypeScript
lastResumedAt
elie222/inbox-zero · apps/desktop/src/main.ts:487
lastResumedAt === null ? null : Date.now() - lastResumedAt,
},
},
);
}
function resolveWindowBounds(
stored?: DesktopWindowBounds,
): DesktopWindowBounds | undefined {
if (stored) {
return fitWindowBoundsToWorkArea(
stored,
screen.getDisplayMatching(stored).workArea,
);
}
const source = lastFocused && !lastFocused.isDestroyed() ? lastFocused : null;
if (!source) return;
const bounds = source.getNormalBounds();