Jamil
2023-01-03 12:21:11 -08:00
committed by GitHub
parent 4fe6b5ec31
commit af74a20de7

View File

@@ -6,11 +6,10 @@ export default function InstallBlock() {
return (
<BrowserOnly fallback={<div>Loading...</div>}>
{() => {
if (window.posthog && typeof window.posthog.get_distinct_id === "function") {
const distinct_id = window.posthog.get_distinct_id()
} else {
const distinct_id = "posthog-blocked"
}
const distinct_id =
(window.posthog && typeof window.posthog.get_distinct_id === "function")
? window.posthog.get_distinct_id()
: "posthog-blocked"
return (
<CodeBlock language="bash">