diff options
author | Allan Wang <me@allanwang.ca> | 2017-06-26 20:06:24 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2017-06-26 20:06:24 -0700 |
commit | ed3efcef75bdcea962c1e281039d8bd96639e6a1 (patch) | |
tree | 59bff9ce9743cf6979d239750064a941187331c6 /app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewSearch.kt | |
parent | cddb866441d04814a13a0cedb7e1e3da4908ebf4 (diff) | |
download | frost-ed3efcef75bdcea962c1e281039d8bd96639e6a1.tar.gz frost-ed3efcef75bdcea962c1e281039d8bd96639e6a1.tar.bz2 frost-ed3efcef75bdcea962c1e281039d8bd96639e6a1.zip |
Update kau
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewSearch.kt')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewSearch.kt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewSearch.kt b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewSearch.kt index d42ea33e..71bb51ef 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewSearch.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewSearch.kt @@ -96,6 +96,7 @@ class FrostWebViewSearch(context: Context, val contract: SearchContract) : WebVi * Sets the input to have our given text, then dispatches the input event so the webpage recognizes it */ fun query(input: String) { + L.d("Searching attempt for $input") JsBuilder().js("var e=document.getElementById('main-search-input');if(e){e.value='$input';var n=new Event('input',{bubbles:!0,cancelable:!0});e.dispatchEvent(n)}else console.log('Input field not found')").build().inject(this) { L.d("Searching for $input") } |