1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-05 09:10:53 +01:00

string typeof check

This commit is contained in:
Kyle Spearrin 2018-12-26 09:41:46 -05:00
parent cddeeefdbb
commit 7a3462afda

View File

@ -155,7 +155,7 @@ export abstract class BaseImporter {
} }
protected isNullOrWhitespace(str: string): boolean { protected isNullOrWhitespace(str: string): boolean {
return str == null || str.trim() === ''; return str == null || typeof str !== 'string' || str.trim() === '';
} }
protected getValueOrDefault(str: string, defaultValue: string = null): string { protected getValueOrDefault(str: string, defaultValue: string = null): string {