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
The Tor Project
Anti-censorship
Pluggable Transports
Snowflake
Commits
5212eda6
Commit
5212eda6
authored
Jan 23, 2017
by
Arlo Breault
Browse files
Fix logging inactive to ui
parent
af70d49e
Changes
1
Hide whitespace changes
Inline
Side-by-side
proxy/snowflake.coffee
View file @
5212eda6
...
...
@@ -206,12 +206,6 @@ log = (msg) ->
dbg
=
(
msg
)
->
log
msg
if
DEBUG
or
snowflake
.
ui
?
.
debug
init
=
(
isNode
)
->
cookies
=
Parse
.
cookie
document
.
cookie
# Do nothing if snowflake has not been opted in.
if
cookies
[
COOKIE_NAME
]
!=
"1"
log
'Not activate. Please click the badge to change options.'
return
# Hook up to the debug UI if available.
ui
=
if
isNode
then
null
else
new
UI
()
silenceNotifications
=
Params
.
getBool
(
query
,
'silent'
,
false
)
...
...
@@ -219,6 +213,12 @@ init = (isNode) ->
broker
=
new
Broker
brokerUrl
snowflake
=
new
Snowflake
broker
,
ui
cookies
=
Parse
.
cookie
document
.
cookie
# Do nothing if snowflake has not been opted in.
if
cookies
[
COOKIE_NAME
]
!=
"1"
log
'Not activate. Please click the badge to change options.'
return
log
'== snowflake proxy =='
log
'Copy-Paste mode detected.'
if
COPY_PASTE_ENABLED
dbg
'Contacting Broker at '
+
broker
.
url
if
not
COPY_PASTE_ENABLED
...
...
Write
Preview
Supports
Markdown
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