1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

Add new login with save from notification bar

This commit is contained in:
Kyle Spearrin
2016-12-30 14:25:57 -05:00
parent 5890449ca9
commit 2310f5ebdf
5 changed files with 142 additions and 38 deletions

View File

@@ -7,8 +7,14 @@
setContent(template_add);
var add = $('#template-add-clone'),
addButton = $('#template-add-clone.add-save'),
neverButton = $('#template-add-clone.add-never');
addButton = $('#template-add-clone .add-save');
$(addButton).click(function (e) {
e.preventDefault();
chrome.runtime.sendMessage({
command: 'bgAddSave'
});
});
}
else if (getQueryVariable('info')) {
setContent(template_alert);
@@ -28,7 +34,7 @@
for (var i = 0; i < vars.length; i++) {
var pair = vars[i].split('=');
if (pair[0] == variable) {
if (pair[0] === variable) {
return pair[1];
}
}