diff --git a/CHANGELOG.md b/CHANGELOG.md index e8c86b7e3..c972f707e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. --> ## [Unreleased] +### Fixed +- Fix [#160](https://github.com/Microsoft/BotFramework-DirectLineJS/issues/160). Removed warning if `pollingInterval` is `undefined`, by [@compulim](https://github.com/compulim) in PR [#161](https://github.com/Microosft/BotFramework-DirectLineJS/pull/161) ## [0.11.2] - 2019-02-05 ### Fixed diff --git a/src/directLine.ts b/src/directLine.ts index 3f867554a..36928a6f8 100644 --- a/src/directLine.ts +++ b/src/directLine.ts @@ -438,7 +438,9 @@ export class DirectLine implements IBotConnection { const parsedPollingInterval = ~~options.pollingInterval; if (parsedPollingInterval < POLLING_INTERVAL_LOWER_BOUND) { - console.warn(`DirectLineJS: provided pollingInterval (${ options.pollingInterval }) is under lower bound (200ms), using default of 1000ms`); + if (typeof options.pollingInterval !== 'undefined') { + console.warn(`DirectLineJS: provided pollingInterval (${ options.pollingInterval }) is under lower bound (200ms), using default of 1000ms`); + } } else { this.pollingInterval = parsedPollingInterval; }