getExtensionTabs method
- @Deprecated(r'Please use $(ref:extension.getViews) <code>{type: "tab"}</code>.')
- int? windowId
Returns an array of the JavaScript 'window' objects for each of the tabs
running inside the current extension. If windowId
is specified, returns
only the 'window' objects of tabs attached to the specified window.
returns
Array of global window objects
Implementation
@Deprecated(
r'Please use $(ref:extension.getViews) <code>{type: "tab"}</code>.')
List<JSObject> getExtensionTabs(int? windowId) {
return $js.chrome.extension
.getExtensionTabs(windowId)
.toDart
.cast<JSObject>()
.map((e) => e)
.toList();
}