[main] Revert default bundle URL to raw.githubusercontent.com
This commit is contained in:
parent
7e8942f3a2
commit
e2b762d387
2 changed files with 5 additions and 5 deletions
|
|
@ -13,7 +13,7 @@ android {
|
|||
minSdk = 24
|
||||
targetSdk = 33
|
||||
versionCode = 1
|
||||
versionName = "0.1.1"
|
||||
versionName = "0.1.2"
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
|
|
|
|||
|
|
@ -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()) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue