Fix safekey (#3772)
This commit is contained in:
parent
290e6f805a
commit
3cf0e09196
|
|
@ -8,7 +8,7 @@ export function getConnectivity(options) {
|
|||
// if we have a friendly name for your connectivity, use that!
|
||||
let connectivity = get(options, 'browsertime.connectivity.alias');
|
||||
return connectivity
|
||||
? this.toSafeKey(connectivity.toString())
|
||||
? toSafeKey(connectivity.toString())
|
||||
: get(options, 'browsertime.connectivity.profile', 'unknown');
|
||||
}
|
||||
|
||||
|
|
@ -26,9 +26,9 @@ export function getURLAndGroup(
|
|||
options.urlsMetaData[url].urlAlias
|
||||
) {
|
||||
let alias = options.urlsMetaData[url].urlAlias;
|
||||
return this.toSafeKey(group) + '.' + this.toSafeKey(alias);
|
||||
return toSafeKey(group) + '.' + toSafeKey(alias);
|
||||
} else if (alias && alias[url]) {
|
||||
return this.toSafeKey(group) + '.' + this.toSafeKey(alias[url]);
|
||||
return toSafeKey(group) + '.' + toSafeKey(alias[url]);
|
||||
} else {
|
||||
return keypathFromUrl(url, includeQueryParameters, options.useHash, group);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue