mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-05-10 18:33:52 +01:00
Increased timeout to 2.5 secs to see if that helps with VS Code open popup
This commit is contained in:
parent
1b1cc773ed
commit
32adf7fde6
@ -300,12 +300,12 @@ export default class Explorer {
|
|||||||
document.body.appendChild(iframe);
|
document.body.appendChild(iframe);
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if (!hasRedirected && Date.now() - startTime < 1200) {
|
if (!hasRedirected && Date.now() - startTime < 2500) {
|
||||||
hasRedirected = true;
|
hasRedirected = true;
|
||||||
window.open(downloadUrl, "_blank");
|
window.open(downloadUrl, "_blank");
|
||||||
logConsoleInfo("VS Code not detected. Opening download page.");
|
logConsoleInfo("VS Code not detected. Opening download page.");
|
||||||
}
|
}
|
||||||
}, 1000);
|
}, 2500);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
iframe.src = vscodeUrl;
|
iframe.src = vscodeUrl;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user