From 7903bde1e91c41c1b734566acc4b64cff875de35 Mon Sep 17 00:00:00 2001 From: pooya parsa Date: Sun, 24 Mar 2019 00:06:19 +0430 Subject: [PATCH] chore: remove progress --- docs/README.md | 2 -- docs/options.md | 12 ------------ lib/module.js | 1 - 3 files changed, 15 deletions(-) diff --git a/docs/README.md b/docs/README.md index 74c7cbe..18d166c 100644 --- a/docs/README.md +++ b/docs/README.md @@ -11,8 +11,6 @@ ✓ Fetch Style requests -✓ Integrated with Nuxt.js Progressbar while making requests - ✓ Integrated with [Proxy Module](https://github.com/nuxt-community/proxy-module) ✓ Auto retry requests with [http-retry](https://github.com/softonic/http-retry) diff --git a/docs/options.md b/docs/options.md index 939fd6e..45b3645 100644 --- a/docs/options.md +++ b/docs/options.md @@ -34,18 +34,6 @@ Environment variable `API_URL_BROWSER` can be used to **override** `browserBaseU If set to `true`, `http://` in both `baseURL` and `browserBaseURL` will be changed into `https://`. -### `progress` - -* Default: `true` - -Integrate with Nuxt.js progress bar to show a loading bar while making requests. (Only on browser, when loading bar is available.) - -You can also disable progress bar per request using `progress` config. - -```js -this.$http.$get('URL', { progress: false }) -``` - ### `proxy` * Default: `false` diff --git a/lib/module.js b/lib/module.js index 6738065..a00d0d8 100755 --- a/lib/module.js +++ b/lib/module.js @@ -36,7 +36,6 @@ function httpModule(_moduleOptions) { baseURL: `http://${defaultHost}:${defaultPort}${prefix}`, browserBaseURL: null, debug: false, - progress: true, proxyHeaders: true, proxyHeadersIgnore: ['accept', 'host', 'cf-ray', 'cf-connecting-ip'], proxy: false,