Chrome extension, [removed] Why is this firing twice?

后端 未结 6 1820
南旧
南旧 2020-12-29 08:15

I have a very very simple bit of code in my (test) Chrome extension:

    function test()
    {
    alert(\"In test!\");
    }

   chrome.tabs.onUpdated.addLi         


        
6条回答
  •  萌比男神i
    2020-12-29 09:11

    Twice is due to status being loading once and status being completed once. if you are unconcerned about the status, you may also try the onCreated event. That will be fired just once!

提交回复
热议问题