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 {
|
try {
|
||||||
return elem.selectionStart;
|
return elem.selectionStart;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (err instanceof (frame
|
if ((err instanceof DOMException ||
|
||||||
? frame.DOMException
|
(frame && err instanceof frame.DOMException)) &&
|
||||||
: DOMException) &&
|
|
||||||
err.name === "InvalidStateError") {
|
err.name === "InvalidStateError") {
|
||||||
// nothing to do, caret_position is already null
|
// nothing to do, caret_position is already null
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user