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

Commit

Permalink
Fix #168: Only add url to history if the tab is not private
Browse files Browse the repository at this point in the history
  • Loading branch information
Liunkae authored and tmancey committed Aug 31, 2018
1 parent ebfb5f6 commit f8b1568
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Client/Frontend/Browser/BrowserViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1116,7 +1116,9 @@ class BrowserViewController: UIViewController {
runScriptsOnWebView(webView)

// Only add history of a url which is not a localhost url
History.add(tab.title ?? "", url: url)
if !tab.isPrivate {
History.add(tab.title ?? "", url: url)
}
}

TabEvent.post(.didChangeURL(url), for: tab)
Expand Down

0 comments on commit f8b1568

Please sign in to comment.