We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff3c335 commit 7565378Copy full SHA for 7565378
src/index.ts
@@ -205,6 +205,16 @@ if (!amMainInstance) {
205
// Redirect all navigations & new windows to the system browser
206
contents.on('will-navigate', handleNavigation);
207
contents.on('new-window', handleNavigation);
208
+
209
+ contents.on('render-process-gone', (_event, details) => {
210
+ if (details.reason === 'clean-exit') return;
211
212
+ reportError(`Renderer gone: ${details.reason}`);
213
+ showErrorAlert(
214
+ "UI crashed",
215
+ "The HTTP Toolkit UI stopped unexpected.\n\nPlease file an issue at github.com/httptoolkit/httptoolkit."
216
+ );
217
+ });
218
});
219
220
function handleNavigation(event: Electron.Event, navigationUrl: string) {
0 commit comments