Fix change layer api functions
This commit is contained in:
parent
145117dc58
commit
d4470568ec
@ -94,7 +94,7 @@ export class WorkadventureRoomCommands extends IframeApiContribution<Workadventu
|
|||||||
onEnterLayer(layerName: string): Subject<void> {
|
onEnterLayer(layerName: string): Subject<void> {
|
||||||
let subject = enterLayerStreams.get(layerName);
|
let subject = enterLayerStreams.get(layerName);
|
||||||
if (subject === undefined) {
|
if (subject === undefined) {
|
||||||
subject = new Subject<ChangeLayerEvent>();
|
subject = new Subject<void>();
|
||||||
enterLayerStreams.set(layerName, subject);
|
enterLayerStreams.set(layerName, subject);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -104,7 +104,7 @@ export class WorkadventureRoomCommands extends IframeApiContribution<Workadventu
|
|||||||
onLeaveLayer(layerName: string): Subject<void> {
|
onLeaveLayer(layerName: string): Subject<void> {
|
||||||
let subject = leaveLayerStreams.get(layerName);
|
let subject = leaveLayerStreams.get(layerName);
|
||||||
if (subject === undefined) {
|
if (subject === undefined) {
|
||||||
subject = new Subject<ChangeLayerEvent>();
|
subject = new Subject<void>();
|
||||||
leaveLayerStreams.set(layerName, subject);
|
leaveLayerStreams.set(layerName, subject);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user