mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-19 17:01:13 +00:00
Added check if the link didn't closed
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user