Changing callback signature of registerAnswerer so that it can return a value and not necessarily a promise.
This commit is contained in:
parent
5b4a72ea1f
commit
280c59e6b5
3 changed files with 6 additions and 6 deletions
|
@ -1045,14 +1045,14 @@ ${escapedMessage}
|
|||
);
|
||||
|
||||
iframeListener.registerAnswerer('getState', () => {
|
||||
return Promise.resolve({
|
||||
return {
|
||||
mapUrl: this.MapUrlFile,
|
||||
startLayerName: this.startPositionCalculator.startLayerName,
|
||||
uuid: localUserStore.getLocalUser()?.uuid,
|
||||
nickname: localUserStore.getName(),
|
||||
roomId: this.RoomId,
|
||||
tags: this.connection ? this.connection.getAllTags() : [],
|
||||
});
|
||||
};
|
||||
});
|
||||
this.iframeSubscriptionList.push(
|
||||
iframeListener.setTilesStream.subscribe((eventTiles) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue