Rethrow exception if we can't handle it
This commit is contained in:
parent
ae2dad7d18
commit
ff7edf79e7
@ -55,6 +55,9 @@ window._qutebrowser.webelem = (function() {
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (e instanceof DOMException && e.name === "InvalidStateError") {
|
if (e instanceof DOMException && e.name === "InvalidStateError") {
|
||||||
// nothing to do, caret_position is already 0
|
// nothing to do, caret_position is already 0
|
||||||
|
} else {
|
||||||
|
// not the droid we're looking for
|
||||||
|
throw e
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user