Rethrow exception if we can't handle it

This commit is contained in:
Luca Benci 2017-10-25 22:53:54 +02:00
parent ae2dad7d18
commit ff7edf79e7

View File

@ -55,6 +55,9 @@ window._qutebrowser.webelem = (function() {
} catch (e) {
if (e instanceof DOMException && e.name === "InvalidStateError") {
// nothing to do, caret_position is already 0
} else {
// not the droid we're looking for
throw e
}
}