(error: unknown, window: BrowserWindow)
| 156 | * a failure to reach the server. |
| 157 | */ |
| 158 | const isTeardownNavigationError = (error: unknown, window: BrowserWindow): boolean => |
| 159 | isExpectedNavigationAbort({ |
| 160 | // 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 |
| 161 | message: error instanceof Error ? error.message : String(error), |
| 162 | windowDestroyed: window.isDestroyed(), |
| 163 | appQuitting: isAppQuitting(), |
| 164 | }); |
| 165 | |
| 166 | /** |
| 167 | * Fire-and-forget navigation. The caller has no way to react to a failure, so |
no test coverage detected