0

When developing with Chrome extensions I have an interesting problem. When I open up my default popup with a button inside it runs a script that creates a new window/panel which needs to open in the bottom right of the screen.

My problem is while the default popup is open, I cannot access the window.innerHeight/innerWidth of the actual window the chrome extension was opened over.

Any ideas?

Default popup means the window that opens when clicking on the chrome extension icon

*I have tried. * -In popup.html and trying document.getElementsByTagName("body").clientWidth - still the default popup's innerWidth, -Running a background script, which turned out to run inside the default popup. -Saving the precious window in DOMContentLoaded event listener, which still only runs in popup.html

Any help is appreciated.

0 Answers0