background.js 253 B

123456789
  1. browser.windows.getAll().then((windowInfoArray) => {
  2. for (currentWindow of windowInfoArray) {
  3. browser.windows.update(currentWindow.id, {state: "fullscreen"});
  4. }
  5. }, onError);
  6. function onError(error) {
  7. console.log(`Error: ${error}`);
  8. }