Skip to content

Commit

Permalink
ViewArchiveCommand: extra keywords + hide for some pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Herobread committed Nov 4, 2024
1 parent 6fb5564 commit c30d063
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/features/command/ViewArchiveCommand.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,24 @@ const COMMAND_KEYWORDS = [
"time",
"travel",
"archive",
"back",
"previous",
"go",
"back",
"go back",
"history",
]

export default function ViewArchiveCommand() {
const currentUrl = window.location.toString()
const currentUrlSegments = extractUrlSegments(currentUrl)

if (
currentUrlSegments[0] === "_this_session" ||
currentUrlSegments[0] === "icons"
) {
return null
}

if (
currentUrlSegments[0] &&
getSegmentType(currentUrlSegments[0]) === "archive"
Expand Down

0 comments on commit c30d063

Please sign in to comment.