mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 03:36:07 +03:00
Add return type to getRedactedCurrentLocation
This commit is contained in:
parent
9420b81eeb
commit
60bc283455
1 changed files with 6 additions and 1 deletions
|
@ -88,7 +88,12 @@ const whitelistedScreens = new Set([
|
|||
"start_sso", "start_cas", "groups", "complete_security", "post_registration", "room", "user", "group",
|
||||
]);
|
||||
|
||||
export async function getRedactedCurrentLocation(origin: string, hash: string, pathname: string, anonymity: Anonymity) {
|
||||
export async function getRedactedCurrentLocation(
|
||||
origin: string,
|
||||
hash: string,
|
||||
pathname: string,
|
||||
anonymity: Anonymity,
|
||||
): Promise<string> {
|
||||
// Redact PII from the current location.
|
||||
// If anonymous is true, redact entirely, if false, substitute it with a hash.
|
||||
// For known screens, assumes a URL structure of /<screen name>/might/be/pii
|
||||
|
|
Loading…
Reference in a new issue