Fixed linter errors
This commit is contained in:
parent
dbbfdfb66b
commit
592e07bc4f
2 changed files with 4 additions and 2 deletions
|
@ -76,7 +76,9 @@ export class WorkadventurePlayerCommands extends IframeApiContribution<Workadven
|
||||||
|
|
||||||
get userRoomToken(): string | undefined {
|
get userRoomToken(): string | undefined {
|
||||||
if (userRoomToken === undefined) {
|
if (userRoomToken === undefined) {
|
||||||
throw new Error("User-room token not initialized yet. You should call WA.player.userRoomToken within a WA.onInit callback.");
|
throw new Error(
|
||||||
|
"User-room token not initialized yet. You should call WA.player.userRoomToken within a WA.onInit callback."
|
||||||
|
);
|
||||||
}
|
}
|
||||||
return userRoomToken;
|
return userRoomToken;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1165,7 +1165,7 @@ ${escapedMessage}
|
||||||
roomId: this.roomUrl,
|
roomId: this.roomUrl,
|
||||||
tags: this.connection ? this.connection.getAllTags() : [],
|
tags: this.connection ? this.connection.getAllTags() : [],
|
||||||
variables: this.sharedVariablesManager.variables,
|
variables: this.sharedVariablesManager.variables,
|
||||||
userRoomToken: this.connection ? this.connection.userRoomToken : ''
|
userRoomToken: this.connection ? this.connection.userRoomToken : "",
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
this.iframeSubscriptionList.push(
|
this.iframeSubscriptionList.push(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue