Stop/reload button
This commit is contained in:
@@ -40,7 +40,11 @@ class BrowserViewController: UIViewController,
|
||||
|
||||
// Refresh button
|
||||
toolbarController.urlBar.refreshButton.addAction(UIAction(handler: { action in
|
||||
webView.reload()
|
||||
if webView.isLoading {
|
||||
webView.stopLoading()
|
||||
} else {
|
||||
webView.reload()
|
||||
}
|
||||
}), for: .touchUpInside)
|
||||
|
||||
// Script button
|
||||
|
||||
Reference in New Issue
Block a user