Make eslint happy
This commit is contained in:
parent
ff7edf79e7
commit
2947b75ab9
@ -52,12 +52,15 @@ window._qutebrowser.webelem = (function() {
|
||||
var caret_position = 0;
|
||||
try {
|
||||
caret_position = elem.selectionStart;
|
||||
} catch (e) {
|
||||
if (e instanceof DOMException && e.name === "InvalidStateError") {
|
||||
} catch (err) {
|
||||
if (
|
||||
err instanceof DOMException &&
|
||||
err.name === "InvalidStateError"
|
||||
) {
|
||||
// nothing to do, caret_position is already 0
|
||||
} else {
|
||||
// not the droid we're looking for
|
||||
throw e
|
||||
throw err;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user