Catch failute that happens if no URL works
This commit is contained in:
parent
85bddc9835
commit
93cad74103
|
|
@ -17,7 +17,12 @@ export function pathToFolder(url, options, alias) {
|
|||
|
||||
const pathSegments = [];
|
||||
const urlSegments = [];
|
||||
pathSegments.push('pages', parsedUrl.hostname.split('.').join('_'));
|
||||
|
||||
// If a measurements fail and we use a script file and no URL
|
||||
// has been tested, we don't have a hostname
|
||||
if (parsedUrl.hostname) {
|
||||
pathSegments.push('pages', parsedUrl.hostname.split('.').join('_'));
|
||||
}
|
||||
|
||||
if (options.urlMetaData && options.urlMetaData[url]) {
|
||||
pathSegments.push(options.urlMetaData[url]);
|
||||
|
|
|
|||
Loading…
Reference in New Issue