Open fregante opened 10 months ago
Optionally, the user could supply {tab: tabId} or {tab: true} to show the alert in a specific tab or the current tab.
{tab: tabId}
{tab: true}
activeTab
window
Code: https://github.com/fregante/webext-domain-permission-toggle/blob/ba697453ee5de2b8889aa2c76a2798d90addca16/index.ts#L105-L115
API: alert('message', {tab: true})
alert('message', {tab: true})
Optionally, the user could supply
{tab: tabId}
or{tab: true}
to show the alert in a specific tab or the current tab.activeTab
accesswindow
Code: https://github.com/fregante/webext-domain-permission-toggle/blob/ba697453ee5de2b8889aa2c76a2798d90addca16/index.ts#L105-L115
API:
alert('message', {tab: true})