Web: Common: Added frameCallback util
This commit is contained in:
parent
14e6d3ffbb
commit
c53028ac3f
@ -391,3 +391,13 @@ export function assign(obj, keyPath, value) {
|
||||
}
|
||||
obj[keyPath[lastKeyIndex]] = value;
|
||||
}
|
||||
|
||||
export const frameCallback = (data) => {
|
||||
window.parent.postMessage(
|
||||
JSON.stringify({
|
||||
type: "onMethodReturn",
|
||||
methodReturnData: data,
|
||||
}),
|
||||
"*"
|
||||
);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user