Commit 66ce5d21 authored by Aral Balkan's avatar Aral Balkan

Moved log statement inside the unwrapped scope.

parent 6061a1c3
......@@ -391,10 +391,10 @@ class TimelineViewController: NSViewController, WKNavigationDelegate
{
let url = navigationAction.request.URL
println("Web view asked to navigate to URL: \(url)")
if let url = url, theProtocol = url.scheme, theCommand = url.host
{
println("Web view asked to navigate to URL: \(url)")
let theArguments = url.pathComponents
if (theProtocol == "http" || theProtocol == "https") && theCommand != "127.0.0.1" && theCommand != "localhost" && theCommand != "192.168.59.103" && !theCommand.hasPrefix("waystone.")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment