Stefan Van Damme
unread,Oct 7, 2022, 10:09:04 AM10/7/22Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Chromium Extensions, nors...@gmail.com, Chethiya Abeysinghe, chromium-...@chromium.org, Chris Naegelin
Hi @nors...
The Chrome extension (in Manifest V3) service worker can not have access to the DOM.
A workaround is to try running your window.screen.availHeight code in your content script, and then send the message back to your background service worker.
With chrome.system.display.getInfo() you can get the current screen width and height.
Thanks,
Stefan vd