Skip to content

Commit

Permalink
chore: Remove useless lines
Browse files Browse the repository at this point in the history
  • Loading branch information
117649 committed Apr 21, 2024
1 parent 3c45de3 commit 25fa8da
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion resource/modules/AllTabs.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ this.Tabs = {
return gBrowser.selectedTab;
},
set selected(tab) {
if(!gBrowser.getBrowserForTab(tab).frameLoader) gBrowser.getBrowserForTab(tab).frameLoader = {remoteTab: null};
return gBrowser.selectedTab = tab;
},

Expand Down
3 changes: 1 addition & 2 deletions resource/modules/TabItems.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -561,8 +561,7 @@ this.TabItem.prototype = {
// Tab View has been deinitialized. We can't proceed.
if(typeof(UI) == 'undefined') { return; }

let notSelected;
if(!this.tab.selected) notSelected = true;
let notSelected = !this.tab.selected;
UI.goToTab(this.tab);

if(notSelected) gBrowser.tabContainer.arrowScrollbox.ensureElementIsVisible(this.tab,true);
Expand Down

0 comments on commit 25fa8da

Please sign in to comment.