mirror of
https://github.com/kemko/nomad.git
synced 2026-01-03 08:55:43 +03:00
Prefer native fetch
This commit is contained in:
@@ -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
6
ui/app/utils/fetch.js
Normal 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;
|
||||
Reference in New Issue
Block a user