Browse Source

:rotating_light:

Vanessa 2 years ago
parent
commit
2be531a0cc
3 changed files with 12 additions and 12 deletions
  1. 1 1
      app/src/config/about.ts
  2. 1 1
      app/src/dialog/processSystem.ts
  3. 10 10
      app/src/protyle/export/index.ts

+ 1 - 1
app/src/config/about.ts

@@ -350,7 +350,7 @@ export const about = {
         const downloadInstallPkgElement = about.element.querySelector("#downloadInstallPkg") as HTMLInputElement;
         downloadInstallPkgElement.addEventListener("change", () => {
             fetchPost("/api/system/setDownloadInstallPkg", {downloadInstallPkg: downloadInstallPkgElement.checked}, () => {
-                window.siyuan.config.system.downloadInstallPkg = downloadInstallPkgElement.checked
+                window.siyuan.config.system.downloadInstallPkg = downloadInstallPkgElement.checked;
             });
         });
         about.element.querySelector("#aboutConfim").addEventListener("click", () => {

+ 1 - 1
app/src/dialog/processSystem.ts

@@ -122,7 +122,7 @@ export const exitSiYuan = () => {
                     ipcRenderer.send(Constants.SIYUAN_QUIT);
                     /// #endif
                 });
-            })
+            });
         } else { // 正常退出
             /// #if !BROWSER
             ipcRenderer.send(Constants.SIYUAN_CONFIG_CLOSETRAY);

+ 10 - 10
app/src/protyle/export/index.ts

@@ -82,8 +82,8 @@ const renderPDF = (id: string) => {
         show: true,
         width: 1032,
         resizable: false,
-        frame: 'darwin' === window.siyuan.config.system.os,
-        titleBarStyle: 'hidden',
+        frame: "darwin" === window.siyuan.config.system.os,
+        titleBarStyle: "hidden",
         webPreferences: {
             contextIsolation: false,
             nodeIntegration: true,
@@ -142,20 +142,20 @@ const renderPDF = (id: string) => {
                                 }
                             });
                         });
-                        destroyWin(win)
+                        destroyWin(win);
                     }).catch((error: string) => {
                         showMessage("Export PDF error:" + error, 0, "error", msgId);
-                        destroyWin(win)
+                        destroyWin(win);
                     });
                 } catch (e) {
                     showMessage("Export PDF error:" + e + ". Export HTML and use Chrome's printing function to convert to PDF", 0, "error", msgId);
-                    destroyWin(win)
+                    destroyWin(win);
                 }
             } else {
-                destroyWin(win)
+                destroyWin(win);
             }
-        })
-    })
+        });
+    });
     fetchPost("/api/export/exportPreviewHTML", {
         id,
     }, response => {
@@ -386,8 +386,8 @@ const renderPDF = (id: string) => {
     });
 </script></body></html>`;
         win.loadURL("data:text/html;charset=UTF-8," + encodeURIComponent(html));
-    })
-}
+    });
+};
 
 const getExportPath = (option: { type: string, id: string }, removeAssets?: boolean) => {
     fetchPost("/api/block/getBlockInfo", {