diff options
Diffstat (limited to 'app/src/main/assets/js/search.js')
-rw-r--r-- | app/src/main/assets/js/search.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/src/main/assets/js/search.js b/app/src/main/assets/js/search.js new file mode 100644 index 00000000..3d10e6f5 --- /dev/null +++ b/app/src/main/assets/js/search.js @@ -0,0 +1,10 @@ +//binds callbacks to an invisible webview to take in the search events +console.log('Binding Search'); +var page = document.querySelector('#page'); +var x = new MutationObserver(function(mutations) { + Frost.handleHtml(page.innerHTML); +}); +x.observe(page, { + childList: true, + subtree: true +}); |