Merge pull request #174 from siikamiika/fix-firefox-scanning-start-of-line

fix scanning start of line on Firefox
This commit is contained in:
Alex Yatskov 2019-08-03 19:55:26 -07:00 committed by GitHub
commit 4fd7eeff3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,6 +102,10 @@ function docRangeFromPoint(point) {
return new TextSourceRange(range); return new TextSourceRange(range);
} }
} }
if (navigator.userAgent.match(/Firefox/)) {
return new TextSourceRange(range);
}
} }
function docSentenceExtract(source, extent) { function docSentenceExtract(source, extent) {