Permalink
Browse files

[fix] Make `primus.Socket` work when using a custom client class name

  • Loading branch information...
lpinca committed Oct 3, 2017
1 parent 8067a0b commit 1f6e41e00dd9304ec71b67c8221b6973a72ac2f3
Showing with 1 addition and 1 deletion.
  1. +1 −1 index.js
View
@@ -201,7 +201,7 @@ Object.defineProperty(Primus.prototype, 'Socket', {
});
vm.runInNewContext(this.library(true), sandbox, { filename: 'primus.js' });
return sandbox.Primus;
return sandbox[this.options.global || 'Primus'];
}
});

0 comments on commit 1f6e41e

Please sign in to comment.