fregante / webext-alert

alert() for background pages/workers in Web Extensions
https://webext-alert.vercel.app
MIT License
10 stars 0 forks source link

Show alert via content script if possible #2

Open fregante opened 10 months ago

fregante commented 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.

Code: https://github.com/fregante/webext-domain-permission-toggle/blob/ba697453ee5de2b8889aa2c76a2798d90addca16/index.ts#L105-L115

API: alert('message', {tab: true})