From ea8d96528f3800000a7a6313929339932af0e8a4 Mon Sep 17 00:00:00 2001 From: "Justin Kolasa (from Dev Box)" Date: Thu, 24 Apr 2025 12:14:29 -0400 Subject: [PATCH] Added check if the link didn't closed --- src/Explorer/Explorer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Explorer/Explorer.tsx b/src/Explorer/Explorer.tsx index ee7d8a738..87e6c901b 100644 --- a/src/Explorer/Explorer.tsx +++ b/src/Explorer/Explorer.tsx @@ -298,7 +298,7 @@ export default class Explorer { const linkOpened = (navigator.userAgent.includes("Insiders") && window.open(vscodeInsidersUrl)) || window.open(vscodeUrl); - if (!linkOpened || linkOpened.closed || typeof linkOpened.closed === "undefined") { + if (!linkOpened || !linkOpened.closed || typeof !linkOpened.closed === "undefined") { logConsoleError("Visual Studio Code is not installed on this device"); window.open("https://code.visualstudio.com/download", "_blank"); }