Skip to content

Commit

Permalink
Merge pull request #2818 from ONLYOFFICE/fix/bug-65607
Browse files Browse the repository at this point in the history
Bug 65607
  • Loading branch information
JuliaRadzhabova authored Jan 30, 2024
2 parents b6a2d45 + 9131dba commit fe753fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion apps/documenteditor/main/app/controller/Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2817,7 +2817,8 @@ define([
me.iframePrint.contentWindow.blur();
window.focus();
} catch (e) {
me.api.asc_DownloadAs(new Asc.asc_CDownloadOptions(Asc.c_oAscFileType.PDF));
// me.api.asc_DownloadAs(new Asc.asc_CDownloadOptions(Asc.c_oAscFileType.PDF));
window.open(url, "_blank"); // download by url, don't convert file again (+ fix print selection)
}
};
}
Expand Down
3 changes: 2 additions & 1 deletion apps/presentationeditor/main/app/controller/Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2328,7 +2328,8 @@ define([
me.iframePrint.contentWindow.blur();
window.focus();
} catch (e) {
me.api.asc_DownloadAs(new Asc.asc_CDownloadOptions(Asc.c_oAscFileType.PDF));
// me.api.asc_DownloadAs(new Asc.asc_CDownloadOptions(Asc.c_oAscFileType.PDF));
window.open(url, "_blank"); // download by url, don't convert file again (+ fix print selection)
}
};
}
Expand Down

0 comments on commit fe753fb

Please sign in to comment.