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

@ -23,6 +23,11 @@ chrome.runtime.onMessage.addListener((message, sender, sendResponse) => {
port.postMessage('howdy');
break;
}
case 'update': {
const [tabId, props] = args;
chrome.tabs.update(tabId, props, sendResponse);
}
}
// Respond asynchronously
return true;