Refactoring

This commit is contained in:
Julia Radzhabova 2021-05-07 01:05:26 +03:00
parent 8429cab65b
commit 66685239ae

View file

@ -234,15 +234,15 @@ div {
"change": false
}
},
events: {
"onAppReady": onAppReady,
"onDocumentStateChange": fileInfo.EditNotificationPostMessage ? onDocumentStateChange : undefined,
'onRequestEditRights': fileInfo.EditModePostMessage ? onRequestEditRights : undefined,
"onError": onError,
"onRequestClose": fileInfo. ClosePostMessage ? onRequestClose : undefined,
"onRequestRename": fileInfo.SupportsRename && fileInfo.UserCanRename ? onRequestRename : undefined,
"requestSharingSettings": fileInfo.FileSharingPostMessage ? requestSharingSettings : undefined
}
"events": {
"onAppReady": onAppReady,
"onDocumentStateChange": fileInfo.EditNotificationPostMessage ? onDocumentStateChange : undefined,
'onRequestEditRights': fileInfo.EditModePostMessage ? onRequestEditRights : undefined,
"onError": onError,
"onRequestClose": fileInfo. ClosePostMessage ? onRequestClose : undefined,
"onRequestRename": fileInfo.SupportsRename && fileInfo.UserCanRename ? onRequestRename : undefined,
"requestSharingSettings": fileInfo.FileSharingPostMessage ? requestSharingSettings : undefined
}
};
postMessageOrigin = fileInfo.PostMessageOrigin;