Skip to content

Commit

Permalink
fix(MessageCenter): browser.runtime.onMessage.addListener type error
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack-Works committed Sep 4, 2019
1 parent 62d6113 commit ce69f8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Extension/MessageCenter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class MessageCenter<ITypedMessages> {
if (typeof browser !== 'undefined' && browser.runtime && browser.runtime.onMessage) {
// Fired when a message is sent from either an extension process (by runtime.sendMessage)
// or a content script (by tabs.sendMessage).
browser.runtime.onMessage.addListener((e: InternalMessageType) => {
browser.runtime.onMessage.addListener((e: any) => {
this.listener(e)
})
}
Expand Down

0 comments on commit ce69f8a

Please sign in to comment.