removeCSS method
Removes a CSS stylesheet that was previously inserted by this extension
from a target context.
|injection|: The details of the styles to remove. Note that the
css
, files
, and origin
properties
must exactly match the stylesheet inserted through insertCSS.
Attempting to remove a non-existent stylesheet is a no-op.
|callback|: A callback to be invoked upon the completion of the removal.
Implementation
Future<void> removeCSS(CSSInjection injection) async {
await promiseToFuture<void>($js.chrome.scripting.removeCSS(injection.toJS));
}