From 8fe17e8d0df53577d496f1e5dcf62ff36a379c01 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sat, 22 Oct 2022 22:29:53 +0800 Subject: [PATCH] :art: pdf --- app/src/protyle/export/index.ts | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/app/src/protyle/export/index.ts b/app/src/protyle/export/index.ts index fcea53443..c4b1f47b2 100644 --- a/app/src/protyle/export/index.ts +++ b/app/src/protyle/export/index.ts @@ -64,9 +64,7 @@ export const saveExport = (option: { type: string, id: string }) => { const renderPDF = (id: string) => { const localData = JSON.parse(localStorage.getItem(Constants.LOCAL_EXPORTPDF) || JSON.stringify({ landscape: false, - margins: { - marginType: "0", - }, + marginType: "0", scale: 1, pageSize: "A4", removeAssets: true, @@ -160,9 +158,9 @@ const renderPDF = (id: string) => {