From c942a2e527eb629ceb48810009213254335cd45c Mon Sep 17 00:00:00 2001 From: squidfunk Date: Sat, 6 Feb 2021 12:52:43 +0100 Subject: [PATCH] Fixed linting errors --- src/overrides/assets/javascripts/index.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/overrides/assets/javascripts/index.ts b/src/overrides/assets/javascripts/index.ts index aaff2e857..fe5fb8623 100644 --- a/src/overrides/assets/javascripts/index.ts +++ b/src/overrides/assets/javascripts/index.ts @@ -20,11 +20,12 @@ * IN THE SOFTWARE. */ -import { from, fromEvent } from "rxjs" import { filter } from "fuzzaldrin-plus" +import { from, fromEvent } from "rxjs" import { getElement, getElementOrThrow } from "browser" import { map, switchMap } from "rxjs/operators" + import { renderIconSearch } from "./templates/icon" // Obtain configuration @@ -59,8 +60,8 @@ if (search) { fromEvent(document.body, "click") .subscribe(ev => { if (ev.target instanceof HTMLElement) { - var el = ev.target.closest("a[href^=http]") - if (el instanceof HTMLLinkElement) + const el2 = ev.target.closest("a[href^=http]") + if (el2 instanceof HTMLLinkElement) // @ts-ignore ga("send", "event", "outbound", "click", el.href) }