mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
value.type should not be case sensitive
This commit is contained in:
@@ -360,7 +360,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (value.type) {
|
var valueType = value.type ? value.type.toLowerCase() : null;
|
||||||
|
switch (valueType) {
|
||||||
case 'login': case null: case undefined:
|
case 'login': case null: case undefined:
|
||||||
cipher.type = constants.cipherType.login;
|
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:
|
case 'login': case null: case undefined:
|
||||||
cipher.type = constants.cipherType.login;
|
cipher.type = constants.cipherType.login;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user