ba7245247a
Until they can be mocked, they can't be used
9 lines
261 B
JavaScript
9 lines
261 B
JavaScript
import Ember from 'ember';
|
|
import fetch from 'fetch';
|
|
|
|
// The ember-fetch polyfill does not provide streaming
|
|
// Additionally, Mirage/Pretender does not support fetch
|
|
const fetchToUse = Ember.testing ? fetch : window.fetch || fetch;
|
|
|
|
export default fetchToUse;
|