diff options
author | Allan Wang <me@allanwang.ca> | 2017-06-06 19:29:25 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2017-06-06 19:29:25 -0700 |
commit | 067ea15188f20fa268255153e35c2df732fdffee (patch) | |
tree | 87a0fcd84f37ad569ec2743ffc702a69cd59e252 /app/src/main/kotlin/com/pitchedapps/frost/web/FrostChromeClient.kt | |
parent | c4e22f5512570d05178711ba90c28eb6dc288253 (diff) | |
download | frost-067ea15188f20fa268255153e35c2df732fdffee.tar.gz frost-067ea15188f20fa268255153e35c2df732fdffee.tar.bz2 frost-067ea15188f20fa268255153e35c2df732fdffee.zip |
Clean up injectors and events
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/web/FrostChromeClient.kt')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/web/FrostChromeClient.kt | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostChromeClient.kt b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostChromeClient.kt index ff8637b1..7ad12c3a 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostChromeClient.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostChromeClient.kt @@ -12,16 +12,14 @@ import io.reactivex.subjects.Subject */ class FrostChromeClient(val progressObservable: Subject<Int>, val titleObservable: BehaviorSubject<String>) : WebChromeClient() { - override fun onConsoleMessage(consoleMessage: ConsoleMessage): Boolean { - L.d("Chrome Console ${consoleMessage.lineNumber()}: ${consoleMessage.message()}") + L.v("Chrome Console ${consoleMessage.lineNumber()}: ${consoleMessage.message()}") return super.onConsoleMessage(consoleMessage) } override fun onReceivedTitle(view: WebView, title: String) { super.onReceivedTitle(view, title) if (title.contains("http") || titleObservable.value == title) return -// L.v("Title $title") titleObservable.onNext(title) } @@ -30,5 +28,4 @@ class FrostChromeClient(val progressObservable: Subject<Int>, val titleObservabl progressObservable.onNext(newProgress) } - }
\ No newline at end of file |