This code works
( async () =>{
const [tab] = await browser.tabs.query({active: true, currentWindow: true});
const response = await chrome.tabs.sendMessage( tab.id, {data: data, context: fcb_context, sel: sel});
log(response);
})();
and changing browser.tabs with chrome.tabs fails:
Uncaught (in promise) TypeError: undefined has no properties
moz-extension://3515db55-fef7-443b-baaa-0fef84f7ac7c/js/background.js:166and changing browser.tabs to chrome.tabs fails constantly witand changing browser.tabs to chrome.tabs fails constantly with
what the problem now ?