Added check if the link closed

This commit is contained in:
Justin Kolasa (from Dev Box) 2025-04-24 11:56:19 -04:00
parent 91921793e7
commit 2adf8af547

View File

@ -298,7 +298,7 @@ export default class Explorer {
const linkOpened =
(navigator.userAgent.includes("Insiders") && window.open(vscodeInsidersUrl)) || window.open(vscodeUrl);
if (!linkOpened) {
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");
}