This commit is contained in:
Vanessa 2024-05-19 17:50:48 +08:00
parent 354ba9681a
commit 29270b4e88

View file

@ -558,6 +558,13 @@ const renderPDF = async (id: string) => {
});
setPadding();
renderPreview(response.data);
window.addEventListener("keydown", (event) => {
if (event.key === "Escape") {
const {ipcRenderer} = require("electron");
ipcRenderer.send("${Constants.SIYUAN_CMD}", "destroy")
event.preventDefault();
}
})
});
</script></body></html>`;
fetchPost("/api/export/exportTempContent", {content: html}, (response) => {