Skip to content

Commit

Permalink
Fix saving binary file
Browse files Browse the repository at this point in the history
  • Loading branch information
JuliaRadzhabova committed Mar 18, 2024
1 parent 770b49d commit cfbcf19
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apps/api/documents/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -907,6 +907,12 @@
var _onMessage = function(msg) {
// TODO: check message origin
if (msg && window.JSON && _scope.frameOrigin==msg.origin ) {
if (msg.data && msg.data.event === 'onSaveDocument') {
if (_fn) {
_fn.call(_scope, msg.data);
}
return;
}

try {
var msg = window.JSON.parse(msg.data);
Expand Down

0 comments on commit cfbcf19

Please sign in to comment.