use __DEV__ instead of DEBUG
This commit is contained in:
parent
083f9fc081
commit
3c9c4e52e7
|
@ -62,8 +62,7 @@ function UdpSocket(options, onmessage) {
|
|||
inherits(UdpSocket, EventEmitter)
|
||||
|
||||
UdpSocket.prototype._debug = function() {
|
||||
// for now
|
||||
if (typeof DEBUG !== 'undefined' && DEBUG) {
|
||||
if (__DEV__) {
|
||||
var args = [].slice.call(arguments)
|
||||
args.unshift('socket-' + this._id)
|
||||
console.log.apply(console, args)
|
||||
|
|
Loading…
Reference in New Issue