Hi folk
if I inspect a MV3 extension of mine (which has the scripting permission)
and I run
in console:
chrome.scripting.registerContentScripts(
[{
"id": "ciao",
"matches": ["https://stackoverflow.com/*"],
"css": ["css/cs.css"],
"js": ["script/cs.js"],
"runAt": "document_idle"
}],
_ => { console.log('DONE') }
) I see the console.log message
but if i run later:
chrome.scripting.unregisterContentScripts("ciao", _ => { console.log('DONE') })
I get this eror:
Error in invocation of scripting.unregisterContentScripts(optional scripting.ContentScriptFilter filter, optional function callback): No matching signature.
Is it a bug or am I drunk?