Skip to content

Commit 66e896b

Browse files
authored
remove the selected tab prior to loading
1 parent a405fa1 commit 66e896b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/addons/addons/multi-tab-code/userscript.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,7 @@ export default async function ({ addon, msg, console }) {
573573
if (!vm.editingTarget) return tabTarget = null;
574574
if (tabTarget && vm.editingTarget.id === tabTarget.id && !hasCommentChanged()) return;
575575
if (tabTarget) saveTabs();
576+
selectedTab = -1;
576577
while (tabs.length) tabs.shift();
577578
while (tabScroller.children.length > 1)
578579
tabScroller.children[0].remove();

0 commit comments

Comments
 (0)