Update MainActivity.kt

This commit is contained in:
Cloudburst 2023-02-11 16:09:59 +01:00 committed by GitHub
parent b07ecab1dd
commit 4b02dedfdf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1118,7 +1118,7 @@ class MainActivity : AppCompatActivity(), ColorPickerDialogListener {
suspend fun checkGithubConnectivity(): Boolean { suspend fun checkGithubConnectivity(): Boolean {
return try { return try {
app.get("https://raw.githubusercontent.com/recloudstream/.github/master/connectivitycheck").text == "ok" app.get("https://raw.githubusercontent.com/recloudstream/.github/master/connectivitycheck").text.trim() == "ok"
} catch (t: Throwable) { } catch (t: Throwable) {
false false
} }