Skip to content
Permalink
Browse files

Use alias from Browsertime (if availible) #2296 (#2297)

* Use alias from Browsertime (if availible) #2296

* Use alias in table
  • Loading branch information...
soulgalore committed Feb 7, 2019
1 parent ccb26ec commit c627fc387d62f9f3c2a846637e43a27cd3dcc4c3
Showing with 3 additions and 1 deletion.
  1. +2 −1 lib/plugins/html/htmlBuilder.js
  2. +1 −0 lib/plugins/html/templates/pages.pug
@@ -204,7 +204,8 @@ class HTMLBuilder {
}
}

let daurlAlias;
// First get the alias from Browsertime
let daurlAlias = get(pageInfo, 'data.browsertime.pageSummary.info.alias');
if (
options.urlsMetaData &&
options.urlsMetaData[url] &&
@@ -7,6 +7,7 @@ mixin rows(pages)
- b = pageInfo.data.browsertime ? pageInfo.data.browsertime.pageSummary : {}
- t = p.contentTypes || {javascript: {transferSize: ''}, css: {transferSize: ''}, image: {transferSize: ''}}
- display = (options.urlsMetaData && options.urlsMetaData[url] && options.urlsMetaData[url].alias) ? options.urlsMetaData[url].alias : url
- display = (pageInfo.data.browsertime && b.info.alias) ? b.info.alias : display
tr
td.url.pagesurl(data-title='URL')
a(href= pageInfo.path + 'index.html')= decodeURIComponent(display)

0 comments on commit c627fc3

Please sign in to comment.
You can’t perform that action at this time.