Skip to content

Commit

Permalink
Merge pull request #17177 from YozhEzhi/866-iframe-story-name
Browse files Browse the repository at this point in the history
UI: Set the current story name in the title
  • Loading branch information
shilman committed Jan 10, 2022
2 parents 2ab83dc + a54bac8 commit 5947eef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/preview-web/src/UrlStore.ts
Expand Up @@ -42,6 +42,7 @@ export const setPath = (selection?: Selection) => {
if (!selection) return;
const query = getQueryString({ selection });
const { hash = '' } = document.location;
document.title = selection.storyId;
history.replaceState({}, '', `${document.location.pathname}${query}${hash}`);
};

Expand Down

0 comments on commit 5947eef

Please sign in to comment.