From bc0c877b8729d3f155292881f0171e77f2f0441d Mon Sep 17 00:00:00 2001 From: Luca Benci Date: Tue, 31 Oct 2017 23:21:37 +0100 Subject: [PATCH] Formatting --- qutebrowser/javascript/webelem.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/qutebrowser/javascript/webelem.js b/qutebrowser/javascript/webelem.js index 0a23ad543..cbd1b16d8 100644 --- a/qutebrowser/javascript/webelem.js +++ b/qutebrowser/javascript/webelem.js @@ -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