0

I am using this code for the Chrome extension to get the window's width in the background script

chrome.windows.getCurrent(function (wind) {

    const w = wind.width;
});

but that sizes the entire window. If I have open and nested the devtools, it will be inside that window. How can I instead get the size of only the website's width?

Jason Hocker
  • 6,879
  • 9
  • 46
  • 79

0 Answers0