1.0.0 migration preview

This commit is contained in:
2022-05-11 00:23:14 +06:00
parent b740203116
commit 9d42385662
11 changed files with 51 additions and 62 deletions

View File

@@ -29,9 +29,9 @@ fun main() {
addEventListener("click", {
scope.launchSafelyWithoutExceptions {
handleResult({ "Clicked" }) {
HttpClient().post<HttpResponse>("${window.location.origin.removeSuffix("/")}/inline") {
HttpClient().post("${window.location.origin.removeSuffix("/")}/inline") {
parameter(webAppQueryIdField, it)
body = TextContent("Clicked", ContentType.Text.Plain)
setBody(TextContent("Clicked", ContentType.Text.Plain))
document.body ?.log(url.build().toString())
}.coroutineContext.job.join()
}