Skip to content

Commit

Permalink
fix: prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
ndom91 committed Jul 11, 2024
1 parent cdc0593 commit 1dc0e65
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/components/meta.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import Head from 'next/head'
import Script from 'next/script'
import { usePathname, useSearchParams } from "next/navigation"
import * as Swetrix from "swetrix"
import { usePathname, useSearchParams } from 'next/navigation'
import * as Swetrix from 'swetrix'

const Meta = () => {
const pathname = usePathname()
Expand All @@ -12,11 +11,11 @@ const Meta = () => {
apiURL: process.env.NEXT_PUBLIC_SWETRIX_API_HOST,
})
let url = pathname
if (searchParams.toString() !== "") {
if (searchParams.toString() !== '') {
url += `?${searchParams.toString()}`
}

if (typeof document !== "undefined") {
if (typeof document !== 'undefined') {
Swetrix.trackPageview(url)
}
}
Expand Down

0 comments on commit 1dc0e65

Please sign in to comment.