From 871217713a8312fc6e40659c100fc45f93ff6954 Mon Sep 17 00:00:00 2001 From: pan93412 Date: Mon, 4 Apr 2022 00:46:08 +0800 Subject: [PATCH] =?UTF-8?q?revert:=20isCreateTray=20=E5=9C=A8=E7=80=8F?= =?UTF-8?q?=E8=A6=BD=E5=99=A8=E7=92=B0=E5=A2=83=E6=87=89=E6=B0=B8=E9=81=A0?= =?UTF-8?q?=E7=82=BA=E6=87=89=E6=B0=B8=E9=81=A0=E7=82=BA=20false?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 部分環境沒有 process.env.IS_ELECTRON,以致發生錯誤。 This reverts commit 748db54f52c8179a62254afcdb22cd0de131b4a2. --- src/utils/platform.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/utils/platform.js b/src/utils/platform.js index b77db0e..c386d8a 100644 --- a/src/utils/platform.js +++ b/src/utils/platform.js @@ -3,6 +3,5 @@ export const isMac = process.platform === 'darwin'; export const isLinux = process.platform === 'linux'; export const isDevelopment = process.env.NODE_ENV === 'development'; -export const isCreateTray = - process.env.IS_ELECTRON && (isWindows || isLinux || isDevelopment); +export const isCreateTray = isWindows || isLinux || isDevelopment; export const isCreateMpris = isLinux;