How to keep Google Chrome Extension popup open?

前端 未结 7 1964
情话喂你
情话喂你 2020-11-27 21:15

If I open my extension popup then I open another window or tab following the popup does not stay open if I return to it.

Is there a way to force it so the popup stay

7条回答
  •  伪装坚强ぢ
    2020-11-27 21:59

    This answer to How do I prevent Chrome developer tools from closing when the current browser window closes? what very helpful in my case:


    Not a perfect solution, but you can add breakpoints on the events Window.close and unload by turning on the checkboxes at:

    Developer tools -> "Sources" tab -> Event Listener Breakpoints -> Window -> close
    

    And

    Event Listener Breakpoints -> Load -> unload
    

    Try to mark both and see which one works best for you

提交回复
热议问题