Files
socket.io/test/support/env.js

6 lines
237 B
JavaScript

// WARNING this is bad practice
// we only do this in our tests because we need to test engine.io-client
// support in browsers and in node.js
// some tests do not yet work in both
module.exports.browser = typeof window !== 'undefined';