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(() => { useEffect(() => {
addquizid(quizId); addquizid(quizId);
}, []); // Устанавливаем changeFaviconAndTitle в store
useQuizStore.setState({ changeFaviconAndTitle });
}, [changeFaviconAndTitle]);
useEffect(() => { useEffect(() => {
setTimeout(() => { setTimeout(() => {

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

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