This commit is contained in:
Chris Li 2017-04-07 11:03:04 -04:00
parent f035cc8b2a
commit 7ed593e139
3 changed files with 2 additions and 5 deletions

View File

@ -57,7 +57,6 @@ class MainController: UIViewController {
webView.delegate = self
navigationItem.titleView = searchBar
showWelcome()
//configureWebView()
AppNotification.shared.rateApp()
}
@ -116,6 +115,7 @@ class MainController: UIViewController {
extension MainController {
func showEmptyTab() {
removeCurrentTab()
let controller = controllers.createTab()
addChildViewController(controller)
tabContainerView.addSubview(controller.view)

View File

@ -13,9 +13,6 @@ class TabController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
let url = URL(string: "https://www.google.com")!
webView.loadRequest(URLRequest(url: url))
}
}

View File

@ -44,7 +44,7 @@ class BrowsingHistoryController: UITableViewController {
Preference.RecentSearch.terms.removeAll()
UIQueue.shared.add(operation: AlertProcedure.History.clearSearchHistory(context: self))
} else {
AppDelegate.mainController.resetWebView()
AppDelegate.mainController.showEmptyTab()
UIQueue.shared.add(operation: AlertProcedure.History.clearBrowsingHistory(context: self))
}
}