How to trigger action/popup from service worker thread?

51 views
Skip to first unread message

Minn Dart

unread,
Sep 28, 2022, 9:28:56 PM9/28/22
to Chromium Extensions
From service worker thread, which method do I call to display action/popup page?

wOxxOm

unread,
Sep 29, 2022, 2:59:36 AM9/29/22
to Chromium Extensions, Minn Dart
In the future it'll be chrome.action.openPopup. For now you'll have to open a new window using chrome.windows.create or insert a DOM element like an iframe into the current page and imitate the popup visually.

Minn Dart

unread,
Sep 29, 2022, 8:20:57 AM9/29/22
to Chromium Extensions, wOxxOm, Minn Dart
Thanks wOxxOm! 
Reply all
Reply to author
Forward
0 new messages