Fixed linter errors

This commit is contained in:
Valdo Romao 2021-12-13 16:19:47 +00:00
parent dbbfdfb66b
commit 592e07bc4f
2 changed files with 4 additions and 2 deletions

View file

@ -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;
} }

View file

@ -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(