Skip to content

Commit

Permalink
🔥 Remove old context logic for history navigation button
Browse files Browse the repository at this point in the history
  • Loading branch information
kierandrewett committed Nov 17, 2023
1 parent facb43c commit e4b78ee
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@
case "load":
case "BrowserTabs::LocationChange":
case "BrowserTabs::TabSelect":
if (!this.context.browser) return;
// if (!this.context.browser) return;

if (direction === "back") {
this.disabled = !this.context.browser.canGoBack;
} else if (direction === "forward") {
this.disabled = !this.context.browser.canGoForward;
}
// if (direction === "back") {
// this.disabled = !this.context.browser.canGoBack;
// } else if (direction === "forward") {
// this.disabled = !this.context.browser.canGoForward;
// }

break;
// break;
}
}

Expand Down

0 comments on commit e4b78ee

Please sign in to comment.