Skip to content

Commit

Permalink
bigget timeout in background for firefox than for chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
lbragile committed Dec 6, 2020
1 parent 3e20dd3 commit c3e4835
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions public/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,16 @@ function getTabsAndSend(info, tab, group_id) {
});

// need time to open page sometimes
setTimeout(() => {
window.localStorage.setItem(
"into_group",
group_id ? group_id : "group-0"
);
window.localStorage.setItem("merged_tabs", JSON.stringify(tabs));
}, 50);
setTimeout(
() => {
window.localStorage.setItem(
"into_group",
group_id ? group_id : "group-0"
);
window.localStorage.setItem("merged_tabs", JSON.stringify(tabs));
},
/chrome/i.test(navigator.userAgent) ? 50 : 200
);
});
}

Expand Down

0 comments on commit c3e4835

Please sign in to comment.