Fix eslint warnings

This commit is contained in:
Artur Shaikhullin 2018-01-19 23:17:03 +06:00
parent 22d77fadd7
commit 1e3f11ca13

View File

@ -1051,9 +1051,6 @@ window._qutebrowser.caret = (function() {
*/
CaretBrowsing.updateCaretOrSelection =
function(scrollToSelection) {
const previousX = CaretBrowsing.caretX;
const previousY = CaretBrowsing.caretY;
const sel = window.getSelection();
if (sel.rangeCount === 0) {
if (CaretBrowsing.caretElement) {
@ -1293,7 +1290,7 @@ window._qutebrowser.caret = (function() {
funcs.setPlatform = (platform) => {
CaretBrowsing.platform = platform;
}
};
funcs.disableCaret = () => {
CaretBrowsing.toggle(false);