From d439fa9a5f3d2c0e443f2c65d1f55fc441beb5aa Mon Sep 17 00:00:00 2001 From: gaoshuaixing Date: Fri, 3 Feb 2023 15:32:02 +0800 Subject: [PATCH] =?UTF-8?q?app=E5=88=AB=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- electron/controller/example.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/electron/controller/example.js b/electron/controller/example.js index a365636..7fa2061 100644 --- a/electron/controller/example.js +++ b/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;