From 66685239ae4bde43e6254b40f5ad1e3342013523 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Fri, 7 May 2021 01:05:26 +0300 Subject: [PATCH] Refactoring --- apps/api/wopi/editor-wopi.ejs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/apps/api/wopi/editor-wopi.ejs b/apps/api/wopi/editor-wopi.ejs index 06e5477d7..9e9629541 100644 --- a/apps/api/wopi/editor-wopi.ejs +++ b/apps/api/wopi/editor-wopi.ejs @@ -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;