Skip to content

Commit bb8ac50

Browse files
committed
1 parent 5c26bba commit bb8ac50

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

pace.coffee

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,12 +252,17 @@ class RequestIntercept extends Events
252252

253253
extendNative window.WebSocket, _WebSocket
254254

255-
intercept = new RequestIntercept
255+
intercept = null
256+
createIntercept = ->
257+
if not intercept? and options.ajax isnt false
258+
intercept = new RequestIntercept
256259

257260
class AjaxMonitor
258261
constructor: ->
259262
@elements = []
260263

264+
createIntercept()
265+
261266
intercept.on 'request', => @watch arguments...
262267

263268
watch: ({type, request}) ->

0 commit comments

Comments
 (0)