Procházet zdrojové kódy

electron bug behoben

hmt před 4 roky
rodič
revize
e801172c58
1 změnil soubory, kde provedl 1 přidání a 3 odebrání
  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) {