Fix eslint warnings
This commit is contained in:
parent
22d77fadd7
commit
1e3f11ca13
@ -1051,9 +1051,6 @@ window._qutebrowser.caret = (function() {
|
|||||||
*/
|
*/
|
||||||
CaretBrowsing.updateCaretOrSelection =
|
CaretBrowsing.updateCaretOrSelection =
|
||||||
function(scrollToSelection) {
|
function(scrollToSelection) {
|
||||||
const previousX = CaretBrowsing.caretX;
|
|
||||||
const previousY = CaretBrowsing.caretY;
|
|
||||||
|
|
||||||
const sel = window.getSelection();
|
const sel = window.getSelection();
|
||||||
if (sel.rangeCount === 0) {
|
if (sel.rangeCount === 0) {
|
||||||
if (CaretBrowsing.caretElement) {
|
if (CaretBrowsing.caretElement) {
|
||||||
@ -1293,7 +1290,7 @@ window._qutebrowser.caret = (function() {
|
|||||||
|
|
||||||
funcs.setPlatform = (platform) => {
|
funcs.setPlatform = (platform) => {
|
||||||
CaretBrowsing.platform = platform;
|
CaretBrowsing.platform = platform;
|
||||||
}
|
};
|
||||||
|
|
||||||
funcs.disableCaret = () => {
|
funcs.disableCaret = () => {
|
||||||
CaretBrowsing.toggle(false);
|
CaretBrowsing.toggle(false);
|
||||||
|
Loading…
Reference in New Issue
Block a user