Skip to content
This repository was archived by the owner on Dec 21, 2021. It is now read-only.

Commit 83b0dcd

Browse files
author
Eric Andrews
committed
fix bug
1 parent 437b4dc commit 83b0dcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

streamr-client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@
734734
throw "subscribe: Invalid arguments: callback is required!"
735735

736736
// Create the Subscription object and bind handlers
737-
var sub = new Subscription(streamId, authKey || this.authKey, callback, options)
737+
var sub = new Subscription(streamId, authKey || this.options.authKey, callback, options)
738738
sub.on('gap', function(from, to) {
739739
_this._requestResend(sub, {resend_from: from, resend_to: to, authKey: sub.authKey })
740740
})

0 commit comments

Comments
 (0)