mirror of
https://github.com/zombieFox/nightTab.git
synced 2024-11-22 08:03:18 +01:00
check if extension before opening all
This commit is contained in:
parent
a03d403f55
commit
318993d5cc
@ -182,21 +182,25 @@ export const GroupArea = function({
|
||||
}),
|
||||
open: () => {
|
||||
|
||||
if (state.get.current().bookmark.newTab) {
|
||||
if ('tabs' in chrome) {
|
||||
|
||||
groupData.group.items.forEach((item, i) => {
|
||||
chrome.tabs.create({ url: item.url });
|
||||
});
|
||||
if (state.get.current().bookmark.newTab) {
|
||||
|
||||
} else {
|
||||
groupData.group.items.forEach((item, i) => {
|
||||
chrome.tabs.create({ url: item.url });
|
||||
});
|
||||
|
||||
const first = groupData.group.items.shift();
|
||||
} else {
|
||||
|
||||
groupData.group.items.forEach((item, i) => {
|
||||
chrome.tabs.create({ url: item.url });
|
||||
});
|
||||
const first = groupData.group.items.shift();
|
||||
|
||||
window.location.href = first.url;
|
||||
groupData.group.items.forEach((item, i) => {
|
||||
chrome.tabs.create({ url: item.url });
|
||||
});
|
||||
|
||||
window.location.href = first.url;
|
||||
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user