We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a5d0f1 commit 349101bCopy full SHA for 349101b
ruby-china-ios/Controllers/WebViewController.swift
@@ -112,7 +112,9 @@ class WebViewController: VisitableViewController {
112
}
113
114
override func visitableDidRender() {
115
- router.match(NSURL(string: (self.visitableView?.webView?.URL?.path)!)!)
+ if let urlPath = self.visitableView?.webView?.URL?.path, url = NSURL(string: urlPath) {
116
+ router.match(url)
117
+ }
118
// 覆盖 visitableDidRender,避免设置 title
119
navigationController?.topViewController?.title = pageTitle
120
0 commit comments