Skip to content

Use document filename as browser tab title - #36

Open
NuclearManatee wants to merge 1 commit into
petergyang:mainfrom
NuclearManatee:feature/tab-title
Open

Use document filename as browser tab title#36
NuclearManatee wants to merge 1 commit into
petergyang:mainfrom
NuclearManatee:feature/tab-title

Conversation

@NuclearManatee

Copy link
Copy Markdown

When reviewing multiple documents, all browser tabs showed
"human review" — you couldn't tell which tab had which document.

This sets document.title to the filename already computed by
pageState() (e.g. index.html, README.md, or the URL pathname),
falling back to 'human-review' when no page is loaded.

Change: 1 line in src/chrome-client.js render().

Closes #24

Use state.page.filename (already computed by pageState()) to set
document.title so browser tabs show which document is open instead
of all showing 'human review'.

Closes petergyang#24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

All tabs say human review

1 participant