Refactoring
This commit is contained in:
parent
8429cab65b
commit
66685239ae
|
@ -234,15 +234,15 @@ div {
|
||||||
"change": false
|
"change": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
events: {
|
"events": {
|
||||||
"onAppReady": onAppReady,
|
"onAppReady": onAppReady,
|
||||||
"onDocumentStateChange": fileInfo.EditNotificationPostMessage ? onDocumentStateChange : undefined,
|
"onDocumentStateChange": fileInfo.EditNotificationPostMessage ? onDocumentStateChange : undefined,
|
||||||
'onRequestEditRights': fileInfo.EditModePostMessage ? onRequestEditRights : undefined,
|
'onRequestEditRights': fileInfo.EditModePostMessage ? onRequestEditRights : undefined,
|
||||||
"onError": onError,
|
"onError": onError,
|
||||||
"onRequestClose": fileInfo. ClosePostMessage ? onRequestClose : undefined,
|
"onRequestClose": fileInfo. ClosePostMessage ? onRequestClose : undefined,
|
||||||
"onRequestRename": fileInfo.SupportsRename && fileInfo.UserCanRename ? onRequestRename : undefined,
|
"onRequestRename": fileInfo.SupportsRename && fileInfo.UserCanRename ? onRequestRename : undefined,
|
||||||
"requestSharingSettings": fileInfo.FileSharingPostMessage ? requestSharingSettings : undefined
|
"requestSharingSettings": fileInfo.FileSharingPostMessage ? requestSharingSettings : undefined
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
postMessageOrigin = fileInfo.PostMessageOrigin;
|
postMessageOrigin = fileInfo.PostMessageOrigin;
|
||||||
|
|
Loading…
Reference in a new issue