Web: Client: Sdk: Fixed setConfig
This commit is contained in:
parent
700c1947f5
commit
5bef2ce668
@ -427,7 +427,7 @@ class PureHome extends React.Component {
|
||||
try {
|
||||
const requests = await Promise.all([
|
||||
setFrameConfig(data),
|
||||
updateProfileCulture(user.id, data.locale),
|
||||
updateProfileCulture(user?.id, data.locale),
|
||||
]);
|
||||
res = requests[0];
|
||||
} catch (e) {
|
||||
|
@ -421,6 +421,7 @@ export function checkIsSSR() {
|
||||
}
|
||||
|
||||
export const frameCallbackData = (methodReturnData: any) => {
|
||||
console.log("frameCallbackData", methodReturnData);
|
||||
window.parent.postMessage(
|
||||
JSON.stringify({
|
||||
type: "onMethodReturn",
|
||||
@ -431,6 +432,7 @@ export const frameCallbackData = (methodReturnData: any) => {
|
||||
};
|
||||
|
||||
export const frameCallEvent = (eventReturnData: any) => {
|
||||
console.log("frameCallEvent", eventReturnData);
|
||||
window.parent.postMessage(
|
||||
JSON.stringify({
|
||||
type: "onEventReturn",
|
||||
@ -441,6 +443,7 @@ export const frameCallEvent = (eventReturnData: any) => {
|
||||
};
|
||||
|
||||
export const frameCallCommand = (commandName: string, commandData: any) => {
|
||||
console.log("frameCallCommand", commandName, commandData);
|
||||
window.parent.postMessage(
|
||||
JSON.stringify({
|
||||
type: "onCallCommand",
|
||||
|
Loading…
Reference in New Issue
Block a user