The executeScript API doesn't seem to behave as expected when using function instead of script file.
chrome.tabs.executeScript({
target : {
tabId: currTab.id,
},
func: function (variable) {
code
return (value);
},
args: [variable_sent]
}).then((injectionResults) => {
injectionResults.result;
The .then clause seems to be ignored.
I'd expect the .then to be executed.
Orion mobile iPhone latest version
17