Match-id-6f25fe3657489f320737a4456ef62fb9abe367af
This commit is contained in:
parent
cdedd81f6b
commit
c7daceca48
|
@ -186,7 +186,7 @@ window.addEventListener('message', messageEvent => {
|
||||||
}
|
}
|
||||||
|
|
||||||
// queues store action
|
// queues store action
|
||||||
if (messageEvent.data.payload.type === 'horizonx queue action') {
|
if (messageEvent?.data?.payload?.type === 'horizonx queue action') {
|
||||||
const data = messageEvent.data.payload.data;
|
const data = messageEvent.data.payload.data;
|
||||||
const store = getStore(data.storeId);
|
const store = getStore(data.storeId);
|
||||||
if (!store?.[data.action]) return;
|
if (!store?.[data.action]) return;
|
||||||
|
@ -197,7 +197,7 @@ window.addEventListener('message', messageEvent => {
|
||||||
}
|
}
|
||||||
|
|
||||||
// queues change store state
|
// queues change store state
|
||||||
if (messageEvent.data.payload.type === 'horizonx change state') {
|
if (messageEvent?.data?.payload?.type === 'horizonx change state') {
|
||||||
const data = messageEvent.data.payload;
|
const data = messageEvent.data.payload;
|
||||||
const store = getStore(data.storeId);
|
const store = getStore(data.storeId);
|
||||||
if (!store) return;
|
if (!store) return;
|
||||||
|
|
Loading…
Reference in New Issue