Skip to content

Commit a405fa1

Browse files
authored
select a tab if none/invalid was selected in loading
1 parent 9af0729 commit a405fa1

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
@@ -584,6 +584,7 @@ export default async function ({ addon, msg, console }) {
584584
console.warn('Couldnt read the serialized tabs', err);
585585
addTab(true, null, vm.editingTarget.blocks._scripts);
586586
}
587+
if (selectedTab < 0 || selectedTab >= tabs.length) selectTab(0);
587588
});
588589

589590
const keysPressed = {};

0 commit comments

Comments
 (0)