Added check if the link didn't closed

This commit is contained in:
Justin Kolasa (from Dev Box)
2025-04-24 12:14:29 -04:00
parent 2adf8af547
commit ea8d96528f

View File

@@ -298,7 +298,7 @@ export default class Explorer {
const linkOpened = const linkOpened =
(navigator.userAgent.includes("Insiders") && window.open(vscodeInsidersUrl)) || window.open(vscodeUrl); (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"); logConsoleError("Visual Studio Code is not installed on this device");
window.open("https://code.visualstudio.com/download", "_blank"); window.open("https://code.visualstudio.com/download", "_blank");
} }