Formatting
This commit is contained in:
parent
370405c0ed
commit
bc0c877b87
@ -53,10 +53,8 @@ window._qutebrowser.webelem = (function() {
|
|||||||
try {
|
try {
|
||||||
caret_position = elem.selectionStart;
|
caret_position = elem.selectionStart;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (
|
if (err instanceof DOMException &&
|
||||||
err instanceof DOMException &&
|
err.name === "InvalidStateError") {
|
||||||
err.name === "InvalidStateError"
|
|
||||||
) {
|
|
||||||
// nothing to do, caret_position is already 0
|
// nothing to do, caret_position is already 0
|
||||||
} else {
|
} else {
|
||||||
// not the droid we're looking for
|
// not the droid we're looking for
|
||||||
|
Loading…
Reference in New Issue
Block a user