mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
autofill updates
This commit is contained in:
@@ -72,7 +72,7 @@ angular
|
|||||||
fillScript = autofillService.generateFillScript(pageDetails, site.username, site.password);
|
fillScript = autofillService.generateFillScript(pageDetails, site.username, site.password);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tabId && fillScript) {
|
if (tabId && fillScript && fillScript.script && fillScript.script.length) {
|
||||||
chrome.tabs.sendMessage(tabId, {
|
chrome.tabs.sendMessage(tabId, {
|
||||||
command: 'fillForm',
|
command: 'fillForm',
|
||||||
fillScript: fillScript
|
fillScript: fillScript
|
||||||
@@ -81,7 +81,8 @@ angular
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
else {
|
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.');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user