mirror of
https://github.com/ansible/awx.git
synced 2026-02-24 22:46:01 -03:30
Downgraded library to 0.9.16. Version 1 and above requires CORS to be enabled on the server side socket port. If it's not enabled, the OPTIONS request fails.
22 lines
439 B
JavaScript
22 lines
439 B
JavaScript
|
|
var env = require('./support/env');
|
|
|
|
// whitelist some globals to avoid warnings
|
|
global.__eio = null;
|
|
global.___eio = null;
|
|
global.WEB_SOCKET_LOGGER = null;
|
|
global.WEB_SOCKET_SUPPRESS_CROSS_DOMAIN_SWF_ERROR = null;
|
|
global.WEB_SOCKET_DISABLE_AUTO_INITIALIZATION = null;
|
|
global.WEB_SOCKET_SWF_LOCATION = null;
|
|
|
|
// node only tests
|
|
if (env.node) {
|
|
require('./url');
|
|
}
|
|
|
|
// browser only tests
|
|
if (env.browser) {
|
|
require('./connection');
|
|
}
|
|
|