Removing ts-ignore
This commit is contained in:
parent
f3c4d344b3
commit
5cd3ab4b4c
@ -257,8 +257,7 @@ class IframeListener {
|
|||||||
this.sendPlayerMove = true;
|
this.sendPlayerMove = true;
|
||||||
} else if (isMenuItemRegisterIframeEvent(payload)) {
|
} else if (isMenuItemRegisterIframeEvent(payload)) {
|
||||||
const data = payload.data.menuItem;
|
const data = payload.data.menuItem;
|
||||||
// @ts-ignore
|
this.iframeCloseCallbacks.get(iframe)?.push(() => {
|
||||||
this.iframeCloseCallbacks.get(iframe).push(() => {
|
|
||||||
handleMenuUnregisterEvent(data);
|
handleMenuUnregisterEvent(data);
|
||||||
});
|
});
|
||||||
handleMenuRegistrationEvent(payload.data.menuItem);
|
handleMenuRegistrationEvent(payload.data.menuItem);
|
||||||
@ -268,8 +267,7 @@ class IframeListener {
|
|||||||
this._modifyEmbeddedWebsiteStream.next(payload.data);
|
this._modifyEmbeddedWebsiteStream.next(payload.data);
|
||||||
} else if (payload.type == "registerMenuIframe" && isMenuIframeEvent(payload.data)) {
|
} else if (payload.type == "registerMenuIframe" && isMenuIframeEvent(payload.data)) {
|
||||||
const data = payload.data.name;
|
const data = payload.data.name;
|
||||||
// @ts-ignore
|
this.iframeCloseCallbacks.get(iframe)?.push(() => {
|
||||||
this.iframeCloseCallbacks.get(iframe).push(() => {
|
|
||||||
handleMenuUnregisterEvent(data);
|
handleMenuUnregisterEvent(data);
|
||||||
});
|
});
|
||||||
handleMenuRegistrationEvent(payload.data.name, payload.data.url, foundSrc);
|
handleMenuRegistrationEvent(payload.data.name, payload.data.url, foundSrc);
|
||||||
|
Loading…
Reference in New Issue
Block a user