Formatting

This commit is contained in:
Luca Benci 2017-10-31 23:21:37 +01:00
parent 370405c0ed
commit bc0c877b87

View File

@ -53,10 +53,8 @@ window._qutebrowser.webelem = (function() {
try {
caret_position = elem.selectionStart;
} catch (err) {
if (
err instanceof DOMException &&
err.name === "InvalidStateError"
) {
if (err instanceof DOMException &&
err.name === "InvalidStateError") {
// nothing to do, caret_position is already 0
} else {
// not the droid we're looking for