1
0
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:
Kyle Spearrin 2018-01-26 11:55:57 -05:00
parent 1b43f3facd
commit c0eb499f4d

View File

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