1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 09:13:33 +00:00

Add types for common browser functions

This commit is contained in:
Daniel James Smith
2021-10-18 16:34:14 +02:00
parent 1bf7a7cad6
commit 2699e0f5a0
3 changed files with 6 additions and 6 deletions

View File

@@ -39,14 +39,14 @@ export default class NotificationBackground {
return;
}
BrowserApi.messageListener('notification.background', async (msg: any, sender: any, sendResponse: any) => {
await this.processMessage(msg, sender, sendResponse);
BrowserApi.messageListener('notification.background', async (msg: any, sender: chrome.runtime.MessageSender) => {
await this.processMessage(msg, sender);
});
this.cleanupNotificationQueue();
}
async processMessage(msg: any, sender: any, sendResponse: any) {
async processMessage(msg: any, sender: chrome.runtime.MessageSender) {
switch (msg.command) {
case 'bgGetDataForTab':
await this.getDataForTab(sender.tab, msg.responseCommand);