This commit is contained in:
Nastya 2025-10-05 18:38:05 +03:00
parent 4fbb2ddc5d
commit ba6bb0afb9
3 changed files with 8 additions and 3 deletions

@ -56,7 +56,9 @@ function QuizAnswererInner({
useEffect(() => {
addquizid(quizId);
}, []);
// Устанавливаем changeFaviconAndTitle в store
useQuizStore.setState({ changeFaviconAndTitle });
}, [changeFaviconAndTitle]);
useEffect(() => {
setTimeout(() => {

@ -17,7 +17,10 @@ export default function App() {
height: "100dvh",
}}
>
<QuizAnswerer quizId={quizId || currentUrl || ""} />
<QuizAnswerer
quizId={quizId || currentUrl || ""}
changeFaviconAndTitle={true}
/>
</Box>
);
}

@ -10,7 +10,7 @@ const widget = {
create({
selector,
quizId,
changeFaviconAndTitle = true,
changeFaviconAndTitle = false,
}: {
selector: string;
quizId: string;