(error: unknown, window: BrowserWindow)
| 162 | * a failure to reach the server. |
| 163 | */ |
| 164 | const isTeardownNavigationError = (error: unknown, window: BrowserWindow): boolean => |
| 165 | isExpectedNavigationAbort({ |
| 166 | // oxlint-disable-next-line executor/no-instanceof-error, executor/no-unknown-error-message -- boundary: Electron rejects loadURL with a plain Node Error carrying the net error name |
| 167 | message: error instanceof Error ? error.message : String(error), |
| 168 | windowDestroyed: window.isDestroyed(), |
| 169 | appQuitting: isAppQuitting(), |
| 170 | }); |
| 171 | |
| 172 | /** |
| 173 | * Fire-and-forget navigation. The caller has no way to react to a failure, so |
no test coverage detected