aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewSearch.kt
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-06-26 20:06:24 -0700
committerAllan Wang <me@allanwang.ca>2017-06-26 20:06:24 -0700
commited3efcef75bdcea962c1e281039d8bd96639e6a1 (patch)
tree59bff9ce9743cf6979d239750064a941187331c6 /app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewSearch.kt
parentcddb866441d04814a13a0cedb7e1e3da4908ebf4 (diff)
downloadfrost-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.kt1
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")
}