Invocation of form tabs.connect(undefined, object) doesn't match definition?
问题 I'm making a simple chrome extension and need to have my popup page connect to the content script on the current tab. However it keeps giving me an error for the tabId argument to tabs.connect . It's saying the tab id I'm passing is undefined rather than an integer. I have no idea why. Full Error: Uncaught Error: Invocation of form tabs.connect(undefined, object) doesn't match definition tabs.connect(integer tabId, optional object connectInfo) at Object.normalizeArgumentsAndValidate