git ssb

1+

Dominic / secure-scuttlebutt



Commit 0047ede118c2fb5da3d3b75fe23e1f1180816828

make work in electron, don't depend on node style setInterval(...).unref

Matt McKegg committed on 6/10/2017, 12:29:17 AM
Parent: 03c9daeb104b3ddf3c69242f7bcf4e5c0e4e24c4

Files changed

db.jschanged
db.jsView
@@ -45,10 +45,10 @@
4545 if(prog.current === prog.target)
4646 prog.start = prog.current
4747 }
4848
49- setInterval(update, 200).unref()
49+ // unref is only available when running inside node
50+ var timer = setInterval(update, 200)
51+ timer.unref && timer.unref()
5052
5153 return db
5254 }
53-
54-

Built with git-ssb-web