mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-27 17:18:04 +01:00
value.type should not be case sensitive
This commit is contained in:
parent
1b43f3facd
commit
c0eb499f4d
@ -360,7 +360,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
switch (value.type) {
|
||||
var valueType = value.type ? value.type.toLowerCase() : null;
|
||||
switch (valueType) {
|
||||
case 'login': case null: case undefined:
|
||||
cipher.type = constants.cipherType.login;
|
||||
|
||||
@ -487,7 +488,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
switch (value.type) {
|
||||
var valueType = value.type ? value.type.toLowerCase() : null;
|
||||
switch (valueType) {
|
||||
case 'login': case null: case undefined:
|
||||
cipher.type = constants.cipherType.login;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user