registerContentScripts method
Registers one or more content scripts for this extension. |scripts|: Contains a list of scripts to be registered. If there are errors during script parsing/file validation, or if the IDs specified already exist, then no scripts are registered. |callback|: A callback to be invoked once scripts have been fully registered or if an error has occurred.
Implementation
Future<void> registerContentScripts(
List<RegisteredContentScript> scripts) async {
await promiseToFuture<void>($js.chrome.scripting
.registerContentScripts(scripts.toJSArray((e) => e.toJS)));
}