revert: isCreateTray 在瀏覽器環境應永遠為應永遠為 false

部分環境沒有 process.env.IS_ELECTRON,以致發生錯誤。

This reverts commit 748db54f52.
This commit is contained in:
pan93412 2022-04-04 00:46:08 +08:00
parent e5d1af49bf
commit 871217713a
No known key found for this signature in database
GPG Key ID: 42154B1B1CFE3377

View File

@ -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;