Skip to content

Commit

Permalink
fix (browser support): correct protocol logic #1140 (#1154)
Browse files Browse the repository at this point in the history
  • Loading branch information
nosovk committed Sep 21, 2020
1 parent e91d2c0 commit f764af6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/connect/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ var debug = require('debug')('mqttjs')
var protocols = {}

// eslint-disable-next-line camelcase
if ((typeof process !== 'undefined' && process.title !== 'browser') || typeof __webpack_require__ === 'function') {
if ((typeof process !== 'undefined' && process.title !== 'browser') || typeof __webpack_require__ !== 'function') {
protocols.mqtt = require('./tcp')
protocols.tcp = require('./tcp')
protocols.ssl = require('./tls')
Expand Down

0 comments on commit f764af6

Please sign in to comment.