diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-08-10 13:33:00 -0400 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-08-16 17:44:16 -0400 |
commit | 2edd4183a0f5061999af2a4e84bea87b6e70834b (patch) | |
tree | e9e5a8f521617d51048a1230488eb9ef7d6a53fb /ext/bg/js/util.js | |
parent | e23d4b9a82581f3cf1118e31d077fc9cdaff7573 (diff) |
Clean up docRangeFromPoint
Use a cached value for checking if the browser is Firefox.
Only validate and set up document.caretRangeFromPoint once.
Use switch for multiple comparisons on the same value.
Diffstat (limited to 'ext/bg/js/util.js')
0 files changed, 0 insertions, 0 deletions