1
1
mirror of https://github.com/leon-ai/leon.git synced 2024-11-24 04:31:31 +03:00

fix(bridge/nodejs): usage of getleon.ai to try network available

This commit is contained in:
Divlo 2023-05-14 00:39:56 +02:00
parent c8fc0068d1
commit 12ce47b937
No known key found for this signature in database
GPG Key ID: 8F9478F220CE65E9

View File

@ -112,10 +112,10 @@ export class Network {
*/
public async isNetworkAvailable(): Promise<boolean> {
try {
await dns.promises.resolve('apple.com')
await dns.promises.resolve('getleon.ai')
return true
} catch (e) {
} catch {
return false
}
}