mirror of
https://github.com/zombieFox/nightTab.git
synced 2025-06-30 22:30:38 +02:00
check if extension before opening all
This commit is contained in:
@ -182,21 +182,25 @@ export const GroupArea = function({
|
|||||||
}),
|
}),
|
||||||
open: () => {
|
open: () => {
|
||||||
|
|
||||||
if (state.get.current().bookmark.newTab) {
|
if ('tabs' in chrome) {
|
||||||
|
|
||||||
groupData.group.items.forEach((item, i) => {
|
if (state.get.current().bookmark.newTab) {
|
||||||
chrome.tabs.create({ url: item.url });
|
|
||||||
});
|
|
||||||
|
|
||||||
} 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) => {
|
const first = groupData.group.items.shift();
|
||||||
chrome.tabs.create({ url: item.url });
|
|
||||||
});
|
|
||||||
|
|
||||||
window.location.href = first.url;
|
groupData.group.items.forEach((item, i) => {
|
||||||
|
chrome.tabs.create({ url: item.url });
|
||||||
|
});
|
||||||
|
|
||||||
|
window.location.href = first.url;
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user