Skip to content

Commit

Permalink
[wopi] Fix bug with infinity loader after OutdatedVersion dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
konovalovsergey committed Sep 30, 2024
1 parent dafc5ed commit f7aeca9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/api/wopi/editor-wopi.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,10 @@ div {
innerAlert(event.data);
};
var onOutdatedVersion = function () {
window.location.reload();
};
var getWopiFileUrl = function(fileInfo, userAuth) {
let url;
if (fileInfo.FileUrl) {
Expand Down Expand Up @@ -382,6 +386,7 @@ div {
'onRequestEditRights': fileInfo.EditModePostMessage || fileInfo.HostEditUrl ? onRequestEditRights : undefined,
'onRequestSaveAs': customizationSaveAs ? onRequestSaveAs : undefined,
"onError": onError,
"onOutdatedVersion": onOutdatedVersion,
"onRequestClose": customizationClose ? onRequestClose : undefined,
"onRequestRename": fileInfo.SupportsRename && fileInfo.UserCanRename ? onRequestRename : undefined,
"onRequestSharingSettings": fileInfo.FileSharingPostMessage || fileInfo.FileSharingUrl ? onRequestSharingSettings : undefined,
Expand Down

0 comments on commit f7aeca9

Please sign in to comment.