From e4b78eea6f66488b96d870422824b460eb88b38d Mon Sep 17 00:00:00 2001 From: EnderDev Date: Fri, 17 Nov 2023 21:20:20 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20Remove=20old=20context=20logic?= =?UTF-8?q?=20for=20history=20navigation=20button?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../content/browser-history-navigation-button.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/components/navigation/content/browser-history-navigation-button.js b/components/navigation/content/browser-history-navigation-button.js index 8010ecec28..11c1dbe2c8 100644 --- a/components/navigation/content/browser-history-navigation-button.js +++ b/components/navigation/content/browser-history-navigation-button.js @@ -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; } }