Skip to content

Commit

Permalink
Fix invalid API url on non discord activity hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSchlaubi committed Aug 28, 2024
1 parent 3934f45 commit 1622b70
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,7 @@ actual open class AppContext : AppContextBase() {
}

actual fun getUrl() = URLBuilder(window.location.href).apply {
takeFrom("https://$appId.discordsays.com/.proxy/api/")
if (window.location.host.endsWith("discordsays.com")) {
takeFrom("https://$appId.discordsays.com/.proxy/api/")
}
}.build()
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {

allprojects {
group = "dev.schlaubi.tonbrett"
version = "1.21.0"
version = "1.21.1"

repositories {
mavenCentral()
Expand Down

0 comments on commit 1622b70

Please sign in to comment.