mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 10:18:54 +00:00
Fix docs page crash (#1265)
https://discourse.firez.one/t/issue-with-firezone-documentation/380
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user