Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Ind.ie Projects
Heartbeat Cocoa
Commits
66ce5d21
Unverified
Commit
66ce5d21
authored
Aug 27, 2015
by
Aral Balkan
Browse files
Moved log statement inside the unwrapped scope.
parent
6061a1c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Heartbeat/TimelineViewController.swift
View file @
66ce5d21
...
...
@@ -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."
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment