From ba6bb0afb97700bc23b74e0ff11d26eaf09fc04a Mon Sep 17 00:00:00 2001 From: Nastya Date: Sun, 5 Oct 2025 18:38:05 +0300 Subject: [PATCH] utm --- lib/components/QuizAnswerer.tsx | 4 +++- src/App.tsx | 5 ++++- src/widget.tsx | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/components/QuizAnswerer.tsx b/lib/components/QuizAnswerer.tsx index d63ef76..4363766 100644 --- a/lib/components/QuizAnswerer.tsx +++ b/lib/components/QuizAnswerer.tsx @@ -56,7 +56,9 @@ function QuizAnswererInner({ useEffect(() => { addquizid(quizId); - }, []); + // Устанавливаем changeFaviconAndTitle в store + useQuizStore.setState({ changeFaviconAndTitle }); + }, [changeFaviconAndTitle]); useEffect(() => { setTimeout(() => { diff --git a/src/App.tsx b/src/App.tsx index 05c8152..7b0c543 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -17,7 +17,10 @@ export default function App() { height: "100dvh", }} > - + ); } diff --git a/src/widget.tsx b/src/widget.tsx index 5c9dea0..dd6a8c4 100644 --- a/src/widget.tsx +++ b/src/widget.tsx @@ -10,7 +10,7 @@ const widget = { create({ selector, quizId, - changeFaviconAndTitle = true, + changeFaviconAndTitle = false, }: { selector: string; quizId: string;