aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/assets/js/search_query.js
blob: 806519deae59f0a117d453070bbbd805af820dbe (plain)
1
2
3
4
5
6
7
8
9
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')