Skip to content

Commit

Permalink
[main] Revert default bundle URL to raw.githubusercontent.com
Browse files Browse the repository at this point in the history
  • Loading branch information
pylixonly committed Apr 3, 2024
1 parent 7e8942f commit e2b762d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ android {
minSdk = 24
targetSdk = 33
versionCode = 1
versionName = "0.1.1"
versionName = "0.1.2"
}

buildTypes {
Expand Down
8 changes: 4 additions & 4 deletions app/src/main/kotlin/io/github/pyoncord/xposed/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit e2b762d

Please sign in to comment.