Fix hinting in frames on qt5.9 with input ranges
This commit is contained in:
parent
8e01353a94
commit
a6e94cf30c
@ -74,9 +74,8 @@ window._qutebrowser.webelem = (function() {
|
||||
try {
|
||||
return elem.selectionStart;
|
||||
} catch (err) {
|
||||
if (err instanceof (frame
|
||||
? frame.DOMException
|
||||
: DOMException) &&
|
||||
if ((err instanceof DOMException ||
|
||||
(frame && err instanceof frame.DOMException)) &&
|
||||
err.name === "InvalidStateError") {
|
||||
// nothing to do, caret_position is already null
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user