Why does my Google Chrome extension only open 25 tabs out of many more?

后端 未结 2 1909
萌比男神i
萌比男神i 2020-12-07 02:11

I have a piece of code here that just doesn\'t want to work right as a Chrome Extension.

As far as I can tell, everything works perfectly, except it stops opening p

2条回答
  •  悲哀的现实
    2020-12-07 02:48

    Probably something to do with a popup blocker or what Brad said.
    Its easy enough to deal with tho, just use the tabs api....

    for (x = 0; x<55; x++){
       chrome.tabs.create({url:"nowhere"+x});
    }
    

    ...55 tiny tabs ;)

提交回复
热议问题