Change to apply fullscreen to all windows instead of current window.
This commit is contained in:
parent
70fbe24185
commit
546bb28161
|
@ -2,7 +2,7 @@
|
|||
"description": "Auto Fullscreen for Firefox Quantum",
|
||||
"manifest_version": 2,
|
||||
"name": "AutoFullscreen",
|
||||
"version": "1.0.0.1",
|
||||
"version": "1.0.0.2",
|
||||
"homepage_url": "https://github.com/tazeat/AutoFullscreen",
|
||||
"background":{
|
||||
"scripts": ["startup.js"]
|
||||
|
|
|
@ -3,6 +3,8 @@ function onError(error) {
|
|||
}
|
||||
|
||||
console.log(`AutoFullscreen Running`);
|
||||
browser.windows.getCurrent().then((currentWindow) => {
|
||||
browser.windows.update(currentWindow.id, {state: "fullscreen"});
|
||||
});
|
||||
browser.windows.getAll().then((windowInfoArray) => {
|
||||
for (currentWindow of windowInfoArray) {
|
||||
browser.windows.update(currentWindow.id, {state: "fullscreen"});
|
||||
}
|
||||
}, onError);
|
Loading…
Reference in New Issue