When calling chrome.tabs.highlight({'tabs': tabId}, function(){});
I'm getting this error:
Unchecked runtime.lastError while running tabs.highlight: No tab at index: 7355.
chrome.tabs.highlight requires a tab index, not a tabId. You can convert a tabId into an index using chrome.tabs.get:
chrome.tabs.get(tabId, function(tab) {
chrome.tabs.highlight({'tabs': tab.index}, function() {});
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With