resetWorldConfiguration method

Future<void> resetWorldConfiguration(
  1. String? worldId
)

Resets the configuration for a user script world. Any scripts that inject into the world with the specified ID will use the default world configuration. |worldId|: The ID of the user script world to reset. If omitted, resets the default world's configuration. |Returns|: Promise that resolves when the configuration is reset.

Implementation

Future<void> resetWorldConfiguration(String? worldId) async {
  await $js.chrome.userScripts.resetWorldConfiguration(worldId).toDart;
}