Skip to content

Commit

Permalink
Update plugins to set product titles
Browse files Browse the repository at this point in the history
- on mount but before render
  • Loading branch information
cee-chen committed Aug 5, 2020
1 parent b07866f commit b4e9b52
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions x-pack/plugins/enterprise_search/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ export class EnterpriseSearchPlugin implements Plugin {
category: DEFAULT_APP_CATEGORIES.enterpriseSearch,
mount: async (params: AppMountParameters) => {
const [coreStart] = await core.getStartServices();
const { chrome } = coreStart;
chrome.docTitle.change(APP_SEARCH_PLUGIN.NAME);

await this.setPublicUrl(config, coreStart.http);

Expand All @@ -68,6 +70,8 @@ export class EnterpriseSearchPlugin implements Plugin {
category: DEFAULT_APP_CATEGORIES.enterpriseSearch,
mount: async (params: AppMountParameters) => {
const [coreStart] = await core.getStartServices();
const { chrome } = coreStart;
chrome.docTitle.change(WORKPLACE_SEARCH_PLUGIN.NAME);

const { renderApp } = await import('./applications');
const { WorkplaceSearch } = await import('./applications/workplace_search');
Expand Down

0 comments on commit b4e9b52

Please sign in to comment.