aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/assets/js/search_query.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/assets/js/search_query.js')
-rw-r--r--app/src/main/assets/js/search_query.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/src/main/assets/js/search_query.js b/app/src/main/assets/js/search_query.js
new file mode 100644
index 00000000..806519de
--- /dev/null
+++ b/app/src/main/assets/js/search_query.js
@@ -0,0 +1,10 @@
+var e = document.getElementById('main-search-input');
+if (e) {
+ e.value = '$input';
+ var n = new Event('input', {
+ bubbles: !0,
+ cancelable: !0
+ });
+ e.dispatchEvent(n);
+ e.dispatchEvent(new Event('focus'));
+} else console.log('Input field not found')