Fix bug
This commit is contained in:
parent
7c91da6183
commit
4a1674d432
|
@ -8,8 +8,6 @@ net = riot.observable!
|
||||||
riot.mixin \net do
|
riot.mixin \net do
|
||||||
net: net
|
net: net
|
||||||
|
|
||||||
log = (riot.mixin \log).log
|
|
||||||
|
|
||||||
module.exports = (i, endpoint, data) ->
|
module.exports = (i, endpoint, data) ->
|
||||||
pending++
|
pending++
|
||||||
|
|
||||||
|
@ -48,8 +46,6 @@ module.exports = (i, endpoint, data) ->
|
||||||
net.trigger \detected-slow-network
|
net.trigger \detected-slow-network
|
||||||
, 5000ms
|
, 5000ms
|
||||||
|
|
||||||
log "API: #{ep}"
|
|
||||||
|
|
||||||
fetch ep, opts
|
fetch ep, opts
|
||||||
.then (res) ->
|
.then (res) ->
|
||||||
pending--
|
pending--
|
||||||
|
|
Loading…
Reference in New Issue