Skip to content

Commit

Permalink
Remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
barijaona committed Nov 17, 2024
1 parent 0c73dea commit 2721760
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Vienna/Sources/Main window/BrowserTab.swift
Original file line number Diff line number Diff line change
Expand Up @@ -230,17 +230,11 @@ extension BrowserTab: Tab {

func back() -> Bool {
let couldGoBack = self.webView.goBack() != nil
// title and url observation not triggered by goBack() -> manual setting
self.url = self.webView.url
updateTabTitle()
return couldGoBack
}

func forward() -> Bool {
let couldGoForward = self.webView.goForward() != nil
// title observation not triggered by goForware() -> manual setting
self.url = self.webView.url
updateTabTitle()
return couldGoForward
}

Expand Down

0 comments on commit 2721760

Please sign in to comment.