1 file changed
+7
-1
@@ -107,7 +107,13 @@ function registerInitCallback(callback) {
|
|||||||
|
|
||||||
async function fetchServices(timeout = 10000) {
|
async function fetchServices(timeout = 10000) {
|
||||||
return Promise.race([
|
return Promise.race([
|
||||||
pollForNTInitializationCheck(),
|
new Promise((resolve) => {
|
||||||
|
setTimeout(() => {
|
||||||
|
pollForNTInitializationCheck().then(() => {
|
||||||
|
resolve(true);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}),
|
||||||
new Promise((resolve) => {
|
new Promise((resolve) => {
|
||||||
setTimeout(() => resolve(false), timeout);
|
setTimeout(() => resolve(false), timeout);
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in new issue
Block a user