mirror of
https://github.com/bitwarden/browser
synced 2025-12-20 18:23:31 +00:00
[PM-22789] Handle Autotype Hotkey Event (#15840)
* [PM-22789] Handle full hotkey event for autotype * [PM-22789] Move userId into windows conditional check * [PM-22789] Refactor autotype service observables * [PM-22789] Address PR comments * [PM-22789] Refactor stringIsNotUndefinedNullAndEmpty() function
This commit is contained in:
@@ -98,3 +98,11 @@ export function cleanUserAgent(userAgent: string): string {
|
||||
.replace(userAgentItem("Bitwarden", " "), "")
|
||||
.replace(userAgentItem("Electron", " "), "");
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns `true` if the provided string is not undefined, not null, and not empty.
|
||||
* Otherwise, returns `false`.
|
||||
*/
|
||||
export function stringIsNotUndefinedNullAndEmpty(str: string): boolean {
|
||||
return str?.length > 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user