popup.js 399 B

123456789101112
  1. let start = document.getElementById('btn_start');
  2. let stop = document.getElementById('btn_stop');
  3. start.onclick = function() {
  4. browser.windows.update(browser.windows.WINDOW_ID_CURRENT,{state:"fullscreen"});
  5. console.log("test start!!!!");
  6. };
  7. stop.onclick = function() {
  8. browser.windows.update(browser.windows.WINDOW_ID_CURRENT,{state:"normal"});
  9. console.log("test stop!!!!");
  10. };