feat: partially support chrome.tabs.update (#30069)

This commit is contained in:
Jeremy Rose 2021-07-27 13:36:22 -07:00 committed by GitHub
parent cce27a0961
commit ceebae170e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 315 additions and 7 deletions

View file

@ -37,6 +37,11 @@ const testMap = {
});
});
chrome.runtime.sendMessage({ method: 'connectTab', args: [name] });
},
update (tabId, props) {
chrome.runtime.sendMessage({ method: 'update', args: [tabId, props] }, response => {
console.log(JSON.stringify(response));
});
}
};