From a68e3ffacfe0799978f7f948127c1cb87b28aaba Mon Sep 17 00:00:00 2001 From: Devin Binnie <52460000+devinbinnie@users.noreply.github.com> Date: Mon, 23 Jan 2023 12:28:04 -0500 Subject: [PATCH] Fixed an issue where opening the app with a deeplink may cause the app not to redirect to the correct URL (#2514) --- src/main/views/MattermostView.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/views/MattermostView.ts b/src/main/views/MattermostView.ts index 8788af08..c1907b7e 100644 --- a/src/main/views/MattermostView.ts +++ b/src/main/views/MattermostView.ts @@ -174,6 +174,10 @@ export class MattermostView extends EventEmitter { this.status = Status.ERROR; return; } + if (err.code && err.code.startsWith('ERR_ABORTED')) { + // If the loading was aborted, we shouldn't be retrying + return; + } this.loadRetry(loadURL, err); }); }