fix: unique keyHash in download URL path + 2s reload delay for save callback
This commit is contained in:
@@ -283,9 +283,11 @@ function closeOnlyofficeEditor() {
|
||||
// Reload the page to clear ONLYOFFICE's in-memory state.
|
||||
// Save the active page so the user returns to Templates automatically
|
||||
sessionStorage.setItem('returnPage', 'templates');
|
||||
// Wait 2 seconds for the save callback (status=2) to complete
|
||||
// on our backend before reloading the page
|
||||
setTimeout(() => {
|
||||
location.reload();
|
||||
}, 300);
|
||||
}, 2000);
|
||||
}
|
||||
|
||||
// Open ONLYOFFICE editor in a modal
|
||||
|
||||
Reference in New Issue
Block a user