gemenon

[ACTIVE] The Safari of the Gemini ecosystem
git clone git://git.figbert.com/gemenon.git
Log | Files | Refs

commit 90e920e800de6f017afa677f8eddc5659a7fa22d
parent 554edc963c3c99f23f69f94dfc9c48979a02de6c
Author: FIGBERT <figbert@figbert.com>
Date:   Thu, 15 Sep 2022 11:23:44 -0700

Set Tab.next property in openURL

Diffstat:
MShared/BrowserFunctions.swift | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/Shared/BrowserFunctions.swift b/Shared/BrowserFunctions.swift @@ -27,9 +27,7 @@ extension BrowserData { } func goBack() { guard self.tab.prev != nil else { return } - let next = self.tab self.tab = self.tab.prev! - self.tab.next = next } func goForward() { guard self.tab.next != nil else { return } @@ -41,6 +39,7 @@ extension BrowserData { func openURL(_ url: URL) async { let response = try! await self.engine.request(url) self.tab = Tab(url, prev: self.tab, response: response) + self.tab.prev?.next = self.tab self.currentView = .Capsule } }