Skip to content

Commit

Permalink
fix: Explorer page title doesn't update when the path changes
Browse files Browse the repository at this point in the history
  • Loading branch information
NriotHrreion committed Aug 11, 2024
1 parent 9a4b113 commit d6c779d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/(pages)/explorer/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,13 @@ export default function Page() {
throw err;
});

document.title = "Ferrum - "+ explorer.stringifyPath();

explorer.clearCurrentViewing();
}, []);

useEffect(() => {
document.title = "Ferrum - "+ explorer.stringifyPath();
}, [explorer]);

useDetectCookie();

return (
Expand Down

0 comments on commit d6c779d

Please sign in to comment.