diff --git a/ui/app/services/token.js b/ui/app/services/token.js index cd2b66723..be1da0c90 100644 --- a/ui/app/services/token.js +++ b/ui/app/services/token.js @@ -1,5 +1,5 @@ import Ember from 'ember'; -import fetch from 'fetch'; +import fetch from 'nomad-ui/utils/fetch'; const { Service, computed, assign } = Ember; diff --git a/ui/app/utils/fetch.js b/ui/app/utils/fetch.js new file mode 100644 index 000000000..468f1b523 --- /dev/null +++ b/ui/app/utils/fetch.js @@ -0,0 +1,6 @@ +import fetch from 'fetch'; + +// The ember-fetch polyfill does not provide streaming +const fetchToUse = window.fetch || fetch; + +export default fetchToUse;