|
@@ -873,21 +873,20 @@ const doTaskReport = (req, sender) => {
|
|
|
case 'follow':
|
|
|
event_type = 1
|
|
|
chrome.tabs.remove(sender.tab.id)
|
|
|
- for (let i = 0; i < follow_open_tabs.length; i++) {
|
|
|
- if (follow_open_tabs[i].id == sender.tab.id) {
|
|
|
- follow_open_tabs.splice(i, 1)
|
|
|
- break
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- chrome.tabs.getCurrent((tab) => {
|
|
|
- if (follow_open_tabs.length > 0) {
|
|
|
- tab_index = follow_open_tabs[follow_open_tabs.length - 1].index
|
|
|
- } else {
|
|
|
- tab_index = tab.index
|
|
|
- }
|
|
|
- chrome.tabs.highlight({ windowId: tab.windowId, tabs: tab_index })
|
|
|
- })
|
|
|
+ // for (let i = 0; i < follow_open_tabs.length; i++) {
|
|
|
+ // if (follow_open_tabs[i].id == sender.tab.id) {
|
|
|
+ // follow_open_tabs.splice(i, 1)
|
|
|
+ // break
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // chrome.tabs.getCurrent((tab) => {
|
|
|
+ // if (follow_open_tabs.length > 0) {
|
|
|
+ // tab_index = follow_open_tabs[follow_open_tabs.length - 1].index
|
|
|
+ // } else {
|
|
|
+ // tab_index = tab.index
|
|
|
+ // }
|
|
|
+ // chrome.tabs.highlight({ windowId: tab.windowId, tabs: tab_index })
|
|
|
+ // })
|
|
|
let has_no_finished = false
|
|
|
state.detail.taskCondition[0].relatedUsers.forEach((item) => {
|
|
|
if (follow_name == item.name) {
|