1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-26 12:25:20 +01:00

autofill updates

This commit is contained in:
Kyle Spearrin 2016-09-21 22:27:18 -04:00
parent 1569231bcd
commit 6361a36f81

View File

@ -72,7 +72,7 @@ angular
fillScript = autofillService.generateFillScript(pageDetails, site.username, site.password);
}
if (tabId && fillScript) {
if (tabId && fillScript && fillScript.script && fillScript.script.length) {
chrome.tabs.sendMessage(tabId, {
command: 'fillForm',
fillScript: fillScript
@ -81,7 +81,8 @@ angular
});
}
else {
toastr.error('Unable to auto-fill the selected site. Copy/paste your username and/or password instead.');
toastr.error('Unable to auto-fill the selected site on this page. ' +
'Copy/paste your username and/or password instead.');
}
};