Skip to content

Commit

Permalink
mqttjs#804 Added browser shim for process.
Browse files Browse the repository at this point in the history
  • Loading branch information
sclausen committed Apr 16, 2018
1 parent ee3382f commit 8d7f2f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/process.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
var process
process.nextTick = setTimeout
process.title = 'browser'

module.exports = process
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
},
"browser": {
"./mqtt.js": "./lib/connect/index.js",
"process": "./lib/process.js",
"fs": false,
"tls": false,
"net": false
Expand Down

0 comments on commit 8d7f2f4

Please sign in to comment.