aboutsummaryrefslogtreecommitdiff
path: root/ext/fg/js/gecko.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/fg/js/gecko.js')
-rw-r--r--ext/fg/js/gecko.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/fg/js/gecko.js b/ext/fg/js/gecko.js
index e47d2ebe..4057b95c 100644
--- a/ext/fg/js/gecko.js
+++ b/ext/fg/js/gecko.js
@@ -20,6 +20,7 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
+
if (!document.caretRangeFromPoint) {
document.caretRangeFromPoint = (x, y) => {
const position = document.caretPositionFromPoint(x,y);