mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-12-19 13:10:16 +08:00
parent
36b1b0f663
commit
147bdfab95
@ -106,13 +106,7 @@ function registerInitCallback(callback) {
|
||||
|
||||
async function fetchServices(timeout = 10000) {
|
||||
return Promise.race([
|
||||
new Promise((resolve) => {
|
||||
setTimeout(() => {
|
||||
pollForNTInitializationCheck().then(() => {
|
||||
resolve(true);
|
||||
});
|
||||
});
|
||||
}),
|
||||
pollForNTInitializationCheck(),
|
||||
new Promise((resolve) => {
|
||||
setTimeout(() => resolve(false), timeout);
|
||||
}),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user