diff options
author | Alex Yatskov <alex@foosoft.net> | 2017-05-24 20:42:54 -0700 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2017-05-24 20:42:54 -0700 |
commit | 992852d3c0aab94044e4a850f598bed38dbc2579 (patch) | |
tree | 88c9df410bfa056f7361ab9db4c932473400d131 /ext/fg/js/util.js | |
parent | cf4a86fa1c683324e2e0454648e44e169ffe9d08 (diff) |
make form search be always enabled
Diffstat (limited to 'ext/fg/js/util.js')
-rw-r--r-- | ext/fg/js/util.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/fg/js/util.js b/ext/fg/js/util.js index 88d160cc..a9e67976 100644 --- a/ext/fg/js/util.js +++ b/ext/fg/js/util.js @@ -112,12 +112,12 @@ function docImposterDestroy() { } } -function docRangeFromPoint(point, imposter) { +function docRangeFromPoint(point) { const element = document.elementFromPoint(point.x, point.y); if (element !== null) { if (element.nodeName === 'IMG' || element.nodeName === 'BUTTON') { return new TextSourceElement(element); - } else if (imposter && (element.nodeName === 'INPUT' || element.nodeName === 'TEXTAREA')) { + } else if (element.nodeName === 'INPUT' || element.nodeName === 'TEXTAREA') { docImposterCreate(element); } } |