File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,8 @@ $ = jQuery
44
44
isConnected : -> @adapter .isConnected ()
45
45
46
46
onDebug : (message ) ->
47
+ return unless SyncConfig .debug_flag
48
+
47
49
window ? .console ? .log (message)
48
50
49
51
onReady : (callbacks ) ->
@@ -182,7 +184,7 @@ class Sync.Stomp extends Sync.Adapter
182
184
@socket = new window.SockJS (SyncConfig .websocket )
183
185
@client = window .Stomp .over (@socket )
184
186
185
- @client .debug = Sync .onDebug if SyncConfig . debug_flag
187
+ @client .debug = Sync .onDebug
186
188
187
189
# SockJS does not support heart-beat: disable heart-beats
188
190
@client .heartbeat .outgoing = 0
Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ def encryption_flag
164
164
end
165
165
166
166
def debug_flag
167
- config [ :debug ]
167
+ !! config [ :debug ]
168
168
end
169
169
170
170
def reactor
You can’t perform that action at this time.
0 commit comments