mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 00:03:56 +00:00
Added autofill support for iframed login forms. #20
This commit is contained in:
@@ -81,7 +81,15 @@
|
||||
chrome.runtime.onMessage.addListener(function (msg, sender, sendResponse) {
|
||||
if (msg.command === 'collectPageDetails') {
|
||||
var pageDetails = collect(document);
|
||||
sendResponse(JSON.parse(pageDetails));
|
||||
var pageDetailsObj = JSON.parse(pageDetails);
|
||||
console.log(pageDetailsObj);
|
||||
//sendResponse(pageDetailsObj);
|
||||
chrome.runtime.sendMessage({
|
||||
command: 'collectPageDetailsResponse',
|
||||
tabId: msg.tabId,
|
||||
details: pageDetailsObj
|
||||
});
|
||||
sendResponse();
|
||||
return true;
|
||||
}
|
||||
else if (msg.command === 'fillForm') {
|
||||
|
||||
Reference in New Issue
Block a user