INNER CODE UNIT · TypeScript

windowAccountId

elie222/inbox-zero · apps/desktop/src/main.ts:655

function windowAccountId(window: BrowserWindow) {
  return getDesktopMailAccountId(
    lastUrlByWindow.get(window) ?? window.webContents.getURL(),
    appOrigin,
  );
}

function focusAppWindow(): BrowserWindow {
  const window =
    (lastFocused && !lastFocused.isDestroyed() ? lastFocused : windows[0]) ??
    createAppWindow();
  showWindow(window);
  return window;
}

function showWindow(window: BrowserWindow) {
  if (window.isMinimized()) window.restore();
  window.show();

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…