diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 2bd7698..c36fae6 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -13,7 +13,7 @@ android { minSdk = 24 targetSdk = 33 versionCode = 1 - versionName = "0.1.1" + versionName = "0.1.2" } buildTypes { diff --git a/app/src/main/kotlin/io/github/pyoncord/xposed/Main.kt b/app/src/main/kotlin/io/github/pyoncord/xposed/Main.kt index e0eb17b..da572ca 100644 --- a/app/src/main/kotlin/io/github/pyoncord/xposed/Main.kt +++ b/app/src/main/kotlin/io/github/pyoncord/xposed/Main.kt @@ -101,16 +101,16 @@ class Main : IXposedHookLoadPackage { val httpJob = scope.async(Dispatchers.IO) { try { val client = HttpClient(CIO) { - if (bundle.exists()) install(HttpTimeout) { - requestTimeoutMillis = 3000 + install(HttpTimeout) { + requestTimeoutMillis = if (bundle.exists()) 3000 else HttpTimeout.INFINITE_TIMEOUT_MS } install(UserAgent) { agent = "PyoncordXposed" } } val url = if (config.customLoadUrl.enabled) config.customLoadUrl.url - else "https://cdn.jsdelivr.net/gh/pyoncord/detta-builds@main/bunny.js" - + else "https://raw.githubusercontent.com/pyoncord/detta-builds/main/bunny.js" + val response: HttpResponse = client.get(url) { headers { if (etag.exists() && bundle.exists()) {