|
|
@ -35,7 +35,9 @@ class BackstageWebView( |
|
|
|
|
|
|
|
|
|
|
|
suspend fun getStrResponse(): StrResponse = suspendCancellableCoroutine { block -> |
|
|
|
suspend fun getStrResponse(): StrResponse = suspendCancellableCoroutine { block -> |
|
|
|
block.invokeOnCancellation { |
|
|
|
block.invokeOnCancellation { |
|
|
|
destroy() |
|
|
|
runOnUI { |
|
|
|
|
|
|
|
destroy() |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
callback = object : BackstageWebView.Callback() { |
|
|
|
callback = object : BackstageWebView.Callback() { |
|
|
|
override fun onResult(response: StrResponse) { |
|
|
|
override fun onResult(response: StrResponse) { |
|
|
|