From 152ce647a3e16cb2e5787a64893248eae73d62ac Mon Sep 17 00:00:00 2001 From: Milad Khajavi Date: Mon, 18 Sep 2023 13:28:44 +0330 Subject: [PATCH] do not change page titles. --- website/src/theme/Footer/ChatPrompt.jsx | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/website/src/theme/Footer/ChatPrompt.jsx b/website/src/theme/Footer/ChatPrompt.jsx index f03fbdbf5bc..3195dcc8163 100644 --- a/website/src/theme/Footer/ChatPrompt.jsx +++ b/website/src/theme/Footer/ChatPrompt.jsx @@ -20,17 +20,6 @@ export const ChatPrompt = (props) => { fullScreen, } = props - useEffect(() => { - // Change the title when the component mounts - const original_title = document.title; - document.title = title; - - // Optionally, you can revert the title when the component unmounts - return () => { - document.title = original_title; - }; - }, []); - const greetings = welcomeMessages.map(m => ({ userType: "bot", message: m,