소스 검색

electron bug behoben

hmt 4 년 전
부모
커밋
e801172c58
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      src/main.js

+ 1 - 3
src/main.js

@@ -73,9 +73,7 @@ ipcMain.on('print', (event, arg) => {
   const options = {
     margins: 'none'
   }
-  mainWindow.webContents.print(options, (success, errorType) => {
-    event.reply('print-reply', success)
-  })
+  mainWindow.webContents.print(options)
 })
 
 function ensureDirectoryExistence(filePath) {