Browse button not working - Cannot read property 'id' of undefined TypeError

Create issue
Issue #27 resolved
Jan Nicklas created an issue

Chrome Version: Version 28.0.1500.71

Error in event handler for 'undefined': Cannot read property 'id' of undefined TypeError: Cannot read property 'id' of undefined at chrome-extension://background.js:15:53

The reason for this issue is that the tab is optional and is not longer omitted:

tab ( optional tabs.Tab ) This property will only be present when the connection was opened from a tab or content script.

I would suppose to changes:

  1. Use onMessage instead of the depcrated onRequest
  2. Send the tabId using the inspectedWindow.tabId:

Comments (2)

  1. Log in to comment