Skip to content

Commit b04b030

Browse files
committed
Fix context issue
1 parent 3ef6b51 commit b04b030

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/web_player.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,8 @@ export class WebPlayer {
604604
}
605605
}
606606

607-
insertSecurityParameters(options) {
607+
// we define insertSecurityParameters in this way because we want to get the this context such as this.subscriberId
608+
insertSecurityParameters = (options) => {
608609
var queryParams = [];
609610
if (!options.uri.includes("subscriberId") && this.subscriberId != null) {
610611
queryParams.push("subscriberId=".concat(this.subscriberId));

0 commit comments

Comments
 (0)