tabs.discard()
Read More at MDN DocsSafe to Use
tabs.discard()
is not safe to use.
It’s supported by 34% of global browsers.
Browsers
Version Breakdown
Full Support
Only accepts a single tab ID as a parameter, not an array.
The tab ID argument is optional: if it is omitted, the browser discards the least important tab.
The callback is passed a Tab
object representing the tab that was discarded.
Tabs whose document contains a beforeunload
listener that displays a prompt will be discarded.
Full Support
Full Support
No Support
Full Support
Only accepts a single tab ID as a parameter, not an array.
The tab ID argument is optional: if it is omitted, the browser discards the least important tab.
The callback is passed a Tab
object representing the tab that was discarded.
Tabs whose document contains a beforeunload
listener that displays a prompt will be discarded.
No Support
No Support