INNER CODE UNIT · TypeScript

activeMainWindow

BradGroux/veritas-kanban · desktop/src/main/index.ts:74

function activeMainWindow(): BrowserWindow | null {
  if (!mainWindow || mainWindow.isDestroyed()) {
    return null;
  }
  return mainWindow;
}

function showDesktopError(message: string): void {
  if (quitting) return;

  const window = activeMainWindow();
  if (!window) return;

  void window
    .loadURL(statusPageUrl('Veritas Kanban desktop error', message, runtime?.snapshot()))
    .catch(() => undefined);
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…