How can I reload my chrome extension by javascript?

后端 未结 2 1337
醉话见心
醉话见心 2021-01-25 03:16

I\'m trying to make that if you press a button in the popup window in my chrome extension, it will reload the extension. Is that possible?

2条回答
  •  离开以前
    2021-01-25 03:40

    Just found this method, which does exactly what I want:

    chrome.runtime.reload();
    

提交回复
热议问题