Prefer native fetch

This commit is contained in:
Michael Lange
2017-11-14 10:50:29 -08:00
parent 3115b34cce
commit 89ef279ffb
2 changed files with 7 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
import Ember from 'ember';
import fetch from 'fetch';
import fetch from 'nomad-ui/utils/fetch';
const { Service, computed, assign } = Ember;

6
ui/app/utils/fetch.js Normal file
View File

@@ -0,0 +1,6 @@
import fetch from 'fetch';
// The ember-fetch polyfill does not provide streaming
const fetchToUse = window.fetch || fetch;
export default fetchToUse;