diff --git a/src/popup-view/js/GroupsFrame.js b/src/popup-view/js/GroupsFrame.js index 6287a6f..acf5515 100644 --- a/src/popup-view/js/GroupsFrame.js +++ b/src/popup-view/js/GroupsFrame.js @@ -195,7 +195,11 @@ async function _renderGroupListItem(Group) { node .querySelector(".list__link:not(.list__link--extend)") .addEventListener("click", async () => { - Group.show(); + if (tabCount === 0) { + await Group.addNewTab(); + } else { + Group.show(); + } window.PopupView.close(); });