From 9191fcaa0782899c25e3f1cb146f5031f6e6c467 Mon Sep 17 00:00:00 2001 From: pantaflex44 Date: Mon, 10 Jun 2024 21:08:49 +0200 Subject: [PATCH] Bug Fix. Document title not change --- src/App.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/App.jsx b/src/App.jsx index f99d15e..d0cb1d8 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -74,7 +74,8 @@ function App() { }), [createRow, defaultHRow, defaultNpRows, defaultProjectName, defaultStepsPerRows, defaultTheme]); const setDocumentTitle = (title) => { - document.title = `${title} - ${pkg.title} ${pkg.version}` + const t = `${title} - ${pkg.title} ${pkg.version}`; + document.title = t; }; const scrollToProject = () => { @@ -616,6 +617,7 @@ function App() { sessionStorage.setItem(pkg.name, JSON.stringify(updatedProject)); setSwitchboard(updatedProject); + setDocumentTitle(updatedProject.prjname); console.log("Saved for this session."); }