Skip to content

Commit

Permalink
Fix bad msg type inspection
Browse files Browse the repository at this point in the history
  • Loading branch information
sdgluck committed Jun 15, 2016
1 parent b43a88e commit bc0598d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ Channel.prototype.send = function (type, data, _id) {

var args = [payload]

if (this.isClient && type === msgr.types.CONNECT) {
if (this.isClient && data === msgr.types.CONNECT) {
args.push([this.messageChannel.port2])
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "msgr",
"version": "1.2.0",
"version": "1.3.0",
"description": "Nifty worker/client postMessage utility",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit bc0598d

Please sign in to comment.