(opts)
| 342 | } |
| 343 | |
| 344 | function newRequest(opts) { |
| 345 | const xdomain = opts.xdomain; |
| 346 | |
| 347 | // XMLHttpRequest can be disabled on IE |
| 348 | try { |
| 349 | if ("undefined" !== typeof XMLHttpRequest && (!xdomain || hasCORS)) { |
| 350 | return new XMLHttpRequest(); |
| 351 | } |
| 352 | } catch (e) {} |
| 353 | |
| 354 | if (!xdomain) { |
| 355 | try { |
| 356 | return new globalThis[["Active"].concat("Object").join("X")]( |
| 357 | "Microsoft.XMLHTTP", |
| 358 | ); |
| 359 | } catch (e) {} |
| 360 | } |
| 361 | } |
no test coverage detected