dnssd.js
dnssd.js copied to clipboard
Use node timers explicitly (for use with Electron)
See commits for more info.
@jpoppe What is the advantage of the Electron timers over the JavaScript standard?
@jaller94 it is not about 'using electron timers'
This pull requests explicitly imports (requires) the node timers module so setInterval will now be called with timers.setInterval.
This will still be the same node timer (and nothing will change when this library is used with node), but without this require Electron is unable to determine that setInterval comes from node and would try to use the browser's built-in setInterval and would fail since it is incompatible (at least in this context).
Thanks. I am not familiar with Electron development and got curious of why a library should adapt for one framework.