Skip to content

Commit

Permalink
Merge pull request #33 from culturedniichan/window-title
Browse files Browse the repository at this point in the history
Show session name in window title
  • Loading branch information
lmg-anon authored Feb 18, 2024
2 parents eecb405 + b2fe728 commit 82af78a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions mikupad.html
Original file line number Diff line number Diff line change
Expand Up @@ -2286,6 +2286,15 @@
}
}

function setTitleToSession() {
const sessionName = sessionStorage.getProperty('name');
document.title = sessionName ? 'mikupad - ' + sessionName : 'mikupad';
}

useEffect(() => {
setTitleToSession();
}, [sessionStorage]);

useEffect(() => {
if (triggerPredict) {
predict();
Expand Down Expand Up @@ -2661,6 +2670,7 @@
redoStack.current = [];
undoStack.current = [];
setUndoHovered(false);
setTitleToSession();
}

const probs = useMemo(() =>
Expand Down

0 comments on commit 82af78a

Please sign in to comment.