Make eslint happy

This commit is contained in:
Luca Benci 2017-10-27 19:52:10 +02:00
parent ff7edf79e7
commit 2947b75ab9

View File

@ -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;
}
}