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

View File

@ -13,9 +13,6 @@ class TabController: UIViewController {
override func viewDidLoad() { override func viewDidLoad() {
super.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() Preference.RecentSearch.terms.removeAll()
UIQueue.shared.add(operation: AlertProcedure.History.clearSearchHistory(context: self)) UIQueue.shared.add(operation: AlertProcedure.History.clearSearchHistory(context: self))
} else { } else {
AppDelegate.mainController.resetWebView() AppDelegate.mainController.showEmptyTab()
UIQueue.shared.add(operation: AlertProcedure.History.clearBrowsingHistory(context: self)) UIQueue.shared.add(operation: AlertProcedure.History.clearBrowsingHistory(context: self))
} }
} }