Skip to content

Commit

Permalink
Bug Fix. Document title not change
Browse files Browse the repository at this point in the history
  • Loading branch information
pantaflex44 committed Jun 10, 2024
1 parent d755865 commit 9191fca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = () => {
Expand Down Expand Up @@ -616,6 +617,7 @@ function App() {

sessionStorage.setItem(pkg.name, JSON.stringify(updatedProject));
setSwitchboard(updatedProject);
setDocumentTitle(updatedProject.prjname);

console.log("Saved for this session.");
}
Expand Down

0 comments on commit 9191fca

Please sign in to comment.