mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed linting errors
This commit is contained in:
parent
cbf27473c5
commit
c942a2e527
@ -20,11 +20,12 @@
|
|||||||
* IN THE SOFTWARE.
|
* IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { from, fromEvent } from "rxjs"
|
|
||||||
import { filter } from "fuzzaldrin-plus"
|
import { filter } from "fuzzaldrin-plus"
|
||||||
|
import { from, fromEvent } from "rxjs"
|
||||||
|
|
||||||
import { getElement, getElementOrThrow } from "browser"
|
import { getElement, getElementOrThrow } from "browser"
|
||||||
import { map, switchMap } from "rxjs/operators"
|
import { map, switchMap } from "rxjs/operators"
|
||||||
|
|
||||||
import { renderIconSearch } from "./templates/icon"
|
import { renderIconSearch } from "./templates/icon"
|
||||||
|
|
||||||
// Obtain configuration
|
// Obtain configuration
|
||||||
@ -59,8 +60,8 @@ if (search) {
|
|||||||
fromEvent(document.body, "click")
|
fromEvent(document.body, "click")
|
||||||
.subscribe(ev => {
|
.subscribe(ev => {
|
||||||
if (ev.target instanceof HTMLElement) {
|
if (ev.target instanceof HTMLElement) {
|
||||||
var el = ev.target.closest("a[href^=http]")
|
const el2 = ev.target.closest("a[href^=http]")
|
||||||
if (el instanceof HTMLLinkElement)
|
if (el2 instanceof HTMLLinkElement)
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
ga("send", "event", "outbound", "click", el.href)
|
ga("send", "event", "outbound", "click", el.href)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user