We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
我在background里使用tabs.query获取tab,然后sendMessage,为什么会返回下面这个错误? Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist.
chrome.tabs.query({currentWindow:true},function(tabs){ for(let i in tabs){ chrome.tabs.sendMessage(tabs[i].id, {greeting: "hello"}, function(response) { console.log(response.farewell); }); } })
The text was updated successfully, but these errors were encountered:
No branches or pull requests
我在background里使用tabs.query获取tab,然后sendMessage,为什么会返回下面这个错误?
Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist.
The text was updated successfully, but these errors were encountered: