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