From 0c843eb37d6f8bc3c1b1c065e1c6298210ab1b2f Mon Sep 17 00:00:00 2001 From: Zimeng Xiong Date: Sat, 22 Nov 2025 09:29:46 -0800 Subject: [PATCH] Browser Title --- frontend/index.html | 2 +- frontend/public/favicon.svg | 20 ++++++++++++++++++++ frontend/src/pages/Editor.tsx | 7 +++++++ 3 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 frontend/public/favicon.svg diff --git a/frontend/index.html b/frontend/index.html index 8a60b0e..e64c16d 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -3,7 +3,7 @@ - + ExcaliDash diff --git a/frontend/public/favicon.svg b/frontend/public/favicon.svg new file mode 100644 index 0000000..ed907de --- /dev/null +++ b/frontend/public/favicon.svg @@ -0,0 +1,20 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/frontend/src/pages/Editor.tsx b/frontend/src/pages/Editor.tsx index 7c6c9d1..193d817 100644 --- a/frontend/src/pages/Editor.tsx +++ b/frontend/src/pages/Editor.tsx @@ -56,6 +56,13 @@ export const Editor: React.FC = () => { const [newName, setNewName] = useState(''); const [initialData, setInitialData] = useState(null); const [isSceneLoading, setIsSceneLoading] = useState(true); + + useEffect(() => { + document.title = `${drawingName} - ExcaliDash`; + return () => { + document.title = 'ExcaliDash'; + }; + }, [drawingName]); const [peers, setPeers] = useState([]); const [me] = useState(getUserIdentity());