diff options
author | Alex Yatskov <FooSoft@users.noreply.github.com> | 2019-08-03 19:55:26 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-03 19:55:26 -0700 |
commit | 4fd7eeff3ed16bacd16624da527c7e17f33a3d15 (patch) | |
tree | b7343d30016590d0627df24b5d9eb3d711ca93ed /ext/fg/js | |
parent | 0368641621bd8a2f62f380d40c10bb5ca824f3cf (diff) | |
parent | cfb5f0b9e1acdf0b9595b819248127b3aa66957f (diff) |
Merge pull request #174 from siikamiika/fix-firefox-scanning-start-of-line
fix scanning start of line on Firefox
Diffstat (limited to 'ext/fg/js')
-rw-r--r-- | ext/fg/js/document.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/fg/js/document.js b/ext/fg/js/document.js index 5dcf7b3d..f58a64fc 100644 --- a/ext/fg/js/document.js +++ b/ext/fg/js/document.js @@ -102,6 +102,10 @@ function docRangeFromPoint(point) { return new TextSourceRange(range); } } + + if (navigator.userAgent.match(/Firefox/)) { + return new TextSourceRange(range); + } } function docSentenceExtract(source, extent) { |