Skip to content

Commit 1dc0e65

Browse files
committed
fix: prettier
1 parent cdc0593 commit 1dc0e65

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/components/meta.jsx

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import Head from 'next/head'
2-
import Script from 'next/script'
3-
import { usePathname, useSearchParams } from "next/navigation"
4-
import * as Swetrix from "swetrix"
2+
import { usePathname, useSearchParams } from 'next/navigation'
3+
import * as Swetrix from 'swetrix'
54

65
const Meta = () => {
76
const pathname = usePathname()
@@ -12,11 +11,11 @@ const Meta = () => {
1211
apiURL: process.env.NEXT_PUBLIC_SWETRIX_API_HOST,
1312
})
1413
let url = pathname
15-
if (searchParams.toString() !== "") {
14+
if (searchParams.toString() !== '') {
1615
url += `?${searchParams.toString()}`
1716
}
1817

19-
if (typeof document !== "undefined") {
18+
if (typeof document !== 'undefined') {
2019
Swetrix.trackPageview(url)
2120
}
2221
}

0 commit comments

Comments
 (0)