I noticed there is a problem obfuscating the service worker of a manifestv3 chrome extension.
Now the function to run a script is:
const example = "Hello World!"
chrome.scripting.executeScript({
func: (param) => {
console.log(param) // Hello World!
},
args: [example],
target: { tabId: tabId }
})
But probably with the obfuscated code a problem arises because what is inside the func() loses meaning since the rest of the obfuscated code is in the service worker and not in the content of the page.
Does anyone know how to fix this problem?
Thanks in advance!