Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

docs: Fix typo in consent banner hide check (#50823)

Gaauwe Rombouts493611a72056
diff --git a/docs/theme/analytics.js b/docs/theme/analytics.js
index 6e9df27f30f..84d9705bfea 100644
--- a/docs/theme/analytics.js
+++ b/docs/theme/analytics.js
@@ -55,7 +55,7 @@ document.addEventListener("DOMContentLoaded", () => {
consentStore.subscribe((state) => {
const hideBanner =
state.activeUI === "none" ||
- (state.activeUI === "banner" && state.mode === "opt-out");
+ (state.activeUI === "banner" && state.model === "opt-out");
banner.style.display = hideBanner ? "none" : "block";
if (state.activeUI === "dialog" && previousActiveUI !== "dialog") {