gaoshuaixing před 2 roky
rodič
revize
d439fa9a5f
1 změnil soubory, kde provedl 5 přidání a 3 odebrání
  1. 5 3
      electron/controller/example.js

+ 5 - 3
electron/controller/example.js

@@ -5,9 +5,11 @@ const path = require('path');
 const fs = require('fs');
 const { exec } = require('child_process');
 const { Controller, Utils } = require('ee-core');
-const electronApp = require('electron').app;
-const {dialog, shell, BrowserView, 
-  Notification, powerMonitor, screen, nativeTheme} = require('electron');
+const {
+  app: electronApp,
+  dialog, shell, BrowserView, Notification, 
+  powerMonitor, screen, nativeTheme
+} = require('electron');
 const dayjs = require('dayjs');
 
 let myTimer = null;