mirror of
https://github.com/bitwarden/browser.git
synced 2024-09-01 00:10:39 +02:00
Remove leading www. from name on saveAddLogin (#771)
This commit is contained in:
parent
c1a3025bdf
commit
3ee3f1e055
|
@ -215,7 +215,11 @@ export default class RuntimeBackground {
|
||||||
loginModel.username = queueMessage.username;
|
loginModel.username = queueMessage.username;
|
||||||
loginModel.password = queueMessage.password;
|
loginModel.password = queueMessage.password;
|
||||||
const model = new CipherView();
|
const model = new CipherView();
|
||||||
model.name = Utils.getHostname(queueMessage.uri) || queueMessage.domain;
|
|
||||||
|
let name = Utils.getHostname(queueMessage.uri) || queueMessage.domain;
|
||||||
|
name = name.replace(/^www./, '');
|
||||||
|
|
||||||
|
model.name = name;
|
||||||
model.type = CipherType.Login;
|
model.type = CipherType.Login;
|
||||||
model.login = loginModel;
|
model.login = loginModel;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user