diff options
author | Allan Wang <me@allanwang.ca> | 2017-08-07 23:04:40 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-07 23:04:40 -0700 |
commit | 397cc1f54725aee6fb542b08f965389272469309 (patch) | |
tree | d5b7ea8185c0ae9596cdcd0c48cca2586f86a5f7 /app/src/main/kotlin/com/pitchedapps/frost/web/FrostJSI.kt | |
parent | ab7ec131b62ac1567e983c846c921bd3ada11dd4 (diff) | |
download | frost-397cc1f54725aee6fb542b08f965389272469309.tar.gz frost-397cc1f54725aee6fb542b08f965389272469309.tar.bz2 frost-397cc1f54725aee6fb542b08f965389272469309.zip |
Update/kau (#125)
* Update logger
* Clean imports and bring back reactive libs
* Update dependencies and make billing async
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/web/FrostJSI.kt')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/web/FrostJSI.kt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostJSI.kt b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostJSI.kt index 018ad737..f24a7a51 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostJSI.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostJSI.kt @@ -81,12 +81,14 @@ class FrostJSI(val webView: FrostWebViewCore) { } @JavascriptInterface - fun handleHtml(html: String) { + fun handleHtml(html: String?) { + html ?: return webView.post { webView.frostWebClient.handleHtml(html) } } @JavascriptInterface - fun handleHeader(html: String) { + fun handleHeader(html: String?) { + html ?: return headerObservable?.onNext(html) } |