mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-05-11 10:54:30 +01:00
Added check if the link closed
This commit is contained in:
parent
91921793e7
commit
2adf8af547
@ -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");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user