Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
soner-yuksel committed Nov 10, 2023
1 parent 261233c commit 5df925a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ class PageZoomHandler: ObservableObject {
@Published var currentValue: Double = 1.0

required init(tab: Tab?, isPrivateBrowsing: Bool) {
if let tab = tab {
self.webView = tab.webView
}
self.webView = tab?.webView
self.isPrivateBrowsing = isPrivateBrowsing

// Private Browsing on Safari iOS always defaults to 100%, and isn't persistently saved.
Expand Down
1 change: 0 additions & 1 deletion Sources/Brave/Frontend/Browser/PageZoom/PageZoomView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ struct PageZoomView: View {
}
}


#if DEBUG
struct PageZoomView_Previews: PreviewProvider {
static var previews: some View {
Expand Down

0 comments on commit 5df925a

Please sign in to comment.