I'm new to chrome extension development. I have some questions: 1. I tried my best to set the width of popup.html to full screen. But, couldn't. Is there any way. 2. When I switch tab in chrome, the extension is closing. Is there any way to remain even when the focus is switched from the extension. 3. popup.html looks like hanging from the extension icon in the tool bar. Is it possible to detach from there.
Asked
Active
Viewed 1,594 times
3
-
Possible duplicate of https://stackoverflow.com/q/41034446/1225070 – Aefits May 26 '18 at 06:47
-
No to all three questions. Open a separate window instead. – wOxxOm May 26 '18 at 08:00
-
But I saw many extensions that did it.Example: Amazon scout. – May 26 '18 at 16:24
-
You didn't. The extension wasn't showing the standard browserAction popup. It was either an in-page DOM element or a separate window. – wOxxOm May 26 '18 at 20:00
1 Answers
2
In popup code
chrome.windows.create({
state: "fullscreen",
url: location.url
})

tscpp
- 1,298
- 2
- 12
- 35