Fix safekey (#3772)

This commit is contained in:
Peter Hedenskog 2023-02-28 18:15:03 +01:00 committed by GitHub
parent 290e6f805a
commit 3cf0e09196
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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);
}